mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Implement AURA_STATE_FROZEN
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
aff0fa1489
commit
ba25093ef2
3 changed files with 12 additions and 10 deletions
|
|
@ -9881,11 +9881,7 @@ void CharmInfo::SetPetNumber(uint32 petnumber, bool statwindow)
|
|||
|
||||
bool Unit::isFrozen() const
|
||||
{
|
||||
AuraList const& mRoot = GetAurasByType(SPELL_AURA_MOD_ROOT);
|
||||
for(AuraList::const_iterator i = mRoot.begin(); i != mRoot.end(); ++i)
|
||||
if( GetSpellSchoolMask((*i)->GetSpellProto()) & SPELL_SCHOOL_MASK_FROST)
|
||||
return true;
|
||||
return false;
|
||||
return HasAuraState(AURA_STATE_FROZEN);
|
||||
}
|
||||
|
||||
struct ProcTriggeredData
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue