Jump to content

[fix][7943] Fear to stunned target


Guest Corfen

Recommended Posts

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

This patch fixes fear effects to stunned target.

Stunned target shouldn't be immune to fear effects.

For which repository revision was the patch created?

7936

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

I didn't find thread with this problem.

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

Me (Corfen)

core patch:

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e1a46f1..de733fe 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8415,13 +8415,6 @@ bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo)
    if (!spellInfo)
        return false;

-    //FIX ME this hack: don't get feared if stunned
-    if (spellInfo->Mechanic == MECHANIC_FEAR )
-    {
-        if ( hasUnitState(UNIT_STAT_STUNNED) )
-            return true;
-    }
-
    //TODO add spellEffect immunity checks!, player with flag in bg is imune to imunity buffs from other friendly players!
    //SpellImmuneList const& dispelList = m_spellImmune[iMMUNITY_EFFECT];


Patch file

Link to comment
Share on other sites

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