Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • [TBC] SpellManager.CastSpellByNameOn("name", "unit") breaks after a while


    Matenia
    • Product: WRobot General Type: Bug Status: Unconfirmed

    Hey @Droidz,

     

    I've noticed on TBC (Warmane) the above mentioned method breaks after a while and only keeps casting on enemies (with heals, that means you automatically cast on yourself instead of focus).
    Not using any addons and a "/reload" fixes this. I suppose this has to do with Warmane's Anti-Cheat measure or your protection against it.

     

    I cannot 100% reliably reproduce this and one user has reported that /reload does not fix this bug for him. Maybe when you hook CastSpellByName to prevent anti-cheat, you forgot to pass all argments to the hooked function and only use the first one?




    User Feedback

    Recommended Comments

    Would it be detectable, if I created a reference to the original function on startup (say, on /reload) and then only called that function directly through Lua (which would be unprotected Lua call)?

    If not, that's something I could do. 

    Basically like this:
     

    EventsLua.AttachEventLua(LuaEventsId.PLAYER_ENTERING_WORLD, context => Lua.LuaDoString(@"
    if not _CastSpellSafe then
    	_CastSpellSafe = CastSpellByName;
    end    
    "));
    Lua.LuaDoString("if not _CastSpellSafe then ReloadUI() end;");
    Lua.LuaDoString($"_CastSpellSafe('Polymorph', 'focus');");

     

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...