Jump to content

[11065] Fix in Moonkin Form


Guest breakwater

Recommended Posts

Apply the 15% absorb while the Moonkin is stunned.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index b4e4077..26f3060 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6409,6 +6409,7 @@ void Aura::HandleShapeshiftBoosts(bool apply)
            break;
        case FORM_MOONKIN:
            spellId1 = 24905;
+            spellId2 = 69366;
            MasterShaperSpellId = 48421;
            break;
        case FORM_FLIGHT:
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2ec911d..02635aa 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -2333,6 +2333,14 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM
                        RemainingDamage -= RemainingDamage * currentAbsorb / 100;
                    continue;
                }
+                // Moonkin Form passive
+                if (spellProto->Id == 69366)
+                {
+                    //reduces all damage taken while Stunned
+                    if (unitflag & UNIT_FLAG_STUNNED)
+                        RemainingDamage -= RemainingDamage * currentAbsorb / 100;
+                    continue;
+                }
                break;
            }
            case SPELLFAMILY_ROGUE:

Have Fun with this :D

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