This commit is contained in:
Subv committed 2012-10-19 17:57:30 -05:00
commit 9dc2b7ecd5
77 files changed
+2991 -2223

No files matched your search

+2 -2
View File
@@ -5229,7 +5229,7 @@ SpellCastResult Spell::CheckCast(bool strict)
if (m_spellInfo->Id != 1842 || (m_targets.GetGOTarget() &&
m_targets.GetGOTarget()->GetGOInfo()->type != GAMEOBJECT_TYPE_TRAP))
if (m_caster->ToPlayer()->InBattleground() && // In Battleground players can use only flags and banners
!m_caster->ToPlayer()->CanUseBattlegroundObject())
!m_caster->ToPlayer()->CanUseBattlegroundObject(m_targets.GetGOTarget()))
return SPELL_FAILED_TRY_AGAIN;
// get the lock entry
@@ -5640,7 +5640,7 @@ SpellCastResult Spell::CheckCasterAuras() const
break;
}
}
if (foundNotStun)
if (foundNotStun && m_spellInfo->Id != 22812)
prevented_reason = SPELL_FAILED_STUNNED;
}
else