mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7011] Add check Aura Spell req in Spell::CanCast
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
88208bc9a7
commit
1f4b00a848
6 changed files with 30 additions and 6 deletions
|
|
@ -3803,6 +3803,17 @@ Aura* Unit::GetAura(uint32 spellId, uint32 effindex)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
bool Unit::isAuraPresent(uint32 spellId)
|
||||
{
|
||||
for (int i=0; i<3; ++i)
|
||||
{
|
||||
AuraMap::iterator iter = m_Auras.find(spellEffectPair(spellId, i));
|
||||
if (iter != m_Auras.end())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void Unit::AddDynObject(DynamicObject* dynObj)
|
||||
{
|
||||
m_dynObjGUIDs.push_back(dynObj->GetGUID());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue