Jump to content

[fix][7928] Sap does not remove eat and drink effects


Auntie Mangos

Recommended Posts

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

This patch would fix the bug that Sapping a player does not remove eat and drink effects, the player will continue eating / drinking while sapped and after the Sap fades. (Sapping a player should make him stand up, and interrupt all effects that can only be used while sitting)

For which repository revision was the patch created?

7743

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

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

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 8c4edda..8b2dc42 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3424,7 +3424,10 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
        if(m_target->GetTypeId() != TYPEID_PLAYER)
            ((Creature*)m_target)->StopMoving();
        else
+        {
            m_target->SetUnitMovementFlags(0);    //Clear movement flags
+            m_target->SetStandState(UNIT_STAND_STATE_STAND);
+        }

        WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8);


Link to comment
Share on other sites

  • 39 years later...
  • 3 weeks later...
  • 4 weeks 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