mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[8690] added unit auraFlag variable
this can be used for faster checking if an unit has a specific aura applied.. also implemented the alive-invisible auras now with this way
This commit is contained in:
parent
46389e4e1c
commit
20e8982075
4 changed files with 21 additions and 4 deletions
|
|
@ -2467,6 +2467,16 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
m_target->PlayDirectSound(14972, (Player *)m_target);
|
||||
}
|
||||
return;
|
||||
case 10848:
|
||||
case 36978:
|
||||
case 40131:
|
||||
case 27978:
|
||||
case 33900:
|
||||
if (apply)
|
||||
m_target->m_AuraFlags |= UNIT_AURAFLAG_ALIVE_INVISIBLE;
|
||||
else
|
||||
m_target->m_AuraFlags |= ~UNIT_AURAFLAG_ALIVE_INVISIBLE;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue