*Implement aura type SPELL_AURA_PREVENT_REGENERATE_POWER(294).
--HG-- branch : trunk
This commit is contained in:
1 parent
b8993423b5
commit
5047eb7a62
5 files changed
+16
-2
No files matched your search
@@ -4185,6 +4185,16 @@ bool Unit::HasAuraTypeWithMiscvalue(AuraType auratype, uint32 miscvalue) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Unit::HasAuraTypeWithValue(AuraType auratype, uint32 value) const
|
||||
{
|
||||
AuraEffectList const& mTotalAuraList = GetAurasByType(auratype);
|
||||
for(AuraEffectList::const_iterator i = mTotalAuraList.begin();i != mTotalAuraList.end(); ++i)
|
||||
if (value == (*i)->GetAmount())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool Unit::HasAuraType(AuraType auraType) const
|
||||
{
|
||||
return (!m_modAuras[auraType].empty());
|
||||
|
||||
Reference in new issue
Block a user