Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

  • 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

Hello, I don't edit this function, but server can do (and do it generally), and yes it is possible than he forget to pass all arguments. 

Matenia

Elite user

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');");

 

If you can use random name for "_CastSpellSafe" but I don't think that it is detectable.

Matenia

Elite user

This fixes it. Weird bug though.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.