Jump to content

[fix][6951] Exception For Pounce


Auntie Mangos
 Share

Recommended Posts

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

1) Fixes the facing-limitation of Pounce to fit official behaviour. Because the Spell still uses the same, old flags, like the other spells with the old behaviour (cloaked and from behind) i felt, a custom check nessecary.

2) Frenzied Regeneration will no longer benefit from +heal, as it should. This was still broken after rev6003 *removed*

For which SubVersion revision was the patch created?

whatever was up.to.date 15.Dec.2008

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

1)Pounce

2)[bug] Druid: Frenzied Regeneration Too Hight*removed*

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

Sarjuuk

1)

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 297ddf6..148b89c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3501,8 +3501,12 @@ uint8 Spell::CanCast(bool strict)
        //Must be behind the target.
        if( m_spellInfo->AttributesEx2 == 0x100000 && (m_spellInfo->AttributesEx & 0x200) == 0x200 && target->HasInArc(M_PI, m_caster) )
        {
-            SendInterrupted(2);
-            return SPELL_FAILED_NOT_BEHIND;
+            //Exclusion for Pounce: Facing Limitation was removed in 2.0.1, but it still uses the same, old Ex-Flags
+            if( m_spellInfo->SpellFamilyName != SPELLFAMILY_DRUID || m_spellInfo->SpellFamilyFlags != 0x0000000000020000LL )
+            {
+                SendInterrupted(2);
+                return SPELL_FAILED_NOT_BEHIND;
+            }
        }

        //Target must be facing you.

2)

Frenzied Regen removed... (because that was hacky)

Link to comment
Share on other sites

  • 38 years later...
  • 3 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 3 months later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • 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