Jump to content

Recommended Posts

Posted

What bug does the patch fix? What features does the patch add?

Many. All Spells with DynamicObjects and the reapply of auras

For which repository revision was the patch created?

I think for all. I am use at the moment 11265. I know i should update :D

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Yes my bugreport, http://getmangos.eu/community/post/133846/#p133846

Who has been writing this patch? Please include either forum user names or email addresses.

me

the problem is that the target, which go outside of the affected area, is not delete from the "affected targetlist". This fix remove the target, that the aura can reapply.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 32ec486..15aa673 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -906,7 +906,10 @@ void PersistentAreaAura::Update(uint32 diff)
        if (dynObj)
        {
            if (!GetTarget()->IsWithinDistInMap(dynObj, dynObj->GetRadius()))
+            {
                remove = true;
+                dynObj->RemoveAffected(GetTarget());
+            }
        }
        else
            remove = true;

for git pick

https://github.com/Reamer/mangos/commit/af2c83c2826bc1a01b5f29e4ed5418772558ffb1

  • 41 years later...
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