Jump to content

Recommended Posts

Posted

Is there a generic way to check if a spell is using a movement generator? I'm trying to fix the moving after death affect if a creature is feared/distracted when it is killed and it continues to move around (usually back to home location) and it becomes unlootable. I created a patch for it here:

http://getmangos.eu/community/viewtopic.php?id=5157

But i don't want to be calling stopmoving in the interruptspell method without it being necessary (as it may remove necessary movement generators though im not sure if there is any) and it isn't efficient to always be calling it if the spell doesn't use a movement generator.

  • 39 years later...
Posted

A simple GetMotionMaster()->MovementExpired(false); in JUST_DEAD code part should be enough.

Other devs comments are welcome, I don't know if this has side effects or not.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use