mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[9475] Add and use TotemSlot enum type
This commit is contained in:
parent
7e2d7d8324
commit
ded1e3c263
10 changed files with 85 additions and 82 deletions
|
|
@ -90,16 +90,7 @@ void Totem::UnSummon()
|
|||
|
||||
if (Unit *owner = GetOwner())
|
||||
{
|
||||
// clear owner's totem slot
|
||||
for(int i = 0; i < MAX_TOTEM; ++i)
|
||||
{
|
||||
if(owner->m_TotemSlot[i] == GetGUID())
|
||||
{
|
||||
owner->m_TotemSlot[i] = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
owner->_RemoveTotem(this);
|
||||
owner->RemoveAurasDueToSpell(GetSpell());
|
||||
|
||||
//remove aura all party members too
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue