Core/Auras: Implemented SPELL_AURA_MOD_STUN_DISABLE_GRAVITY

Port From (https://github.com/TrinityCore/TrinityCore/commit/6515319b7542930ffe2237c309a3dc3773d70f72)
This commit is contained in:
hondacrx
2023-01-05 17:22:24 -05:00
parent 0abdfbd279
commit a14038d374
4 changed files with 38 additions and 6 deletions
+7
View File
@@ -5901,6 +5901,7 @@ namespace Game.Spells
switch (auraType)
{
case AuraType.ModStun:
case AuraType.ModStunDisableGravity:
return SpellCastResult.Stunned;
case AuraType.ModFear:
return SpellCastResult.Fleeing;
@@ -5939,6 +5940,12 @@ namespace Game.Spells
SpellCastResult mechanicResult = mechanicCheck(AuraType.ModFear, ref param1);
if (mechanicResult != SpellCastResult.SpellCastOk)
result = mechanicResult;
else
{
mechanicResult = mechanicCheck(AuraType.ModStunDisableGravity, ref param1);
if (mechanicResult != SpellCastResult.SpellCastOk)
result = mechanicResult;
}
}
else if (!CheckSpellCancelsFear(ref param1))
result = SpellCastResult.Fleeing;