Core/Auras: Implemented SPELL_AURA_MOD_STUN_DISABLE_GRAVITY
Port From (https://github.com/TrinityCore/TrinityCore/commit/6515319b7542930ffe2237c309a3dc3773d70f72)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user