mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7610] Fixed problems with Aura::HandleMosPossess for players
This commit is contained in:
parent
0fc68c5e1e
commit
e4daaaedb1
3 changed files with 16 additions and 9 deletions
|
|
@ -10177,11 +10177,11 @@ void CharmInfo::InitEmptyActionBar()
|
|||
|
||||
void CharmInfo::InitPossessCreateSpells()
|
||||
{
|
||||
if(m_unit->GetTypeId() == TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
InitEmptyActionBar(); //charm action bar
|
||||
|
||||
if(m_unit->GetTypeId() == TYPEID_PLAYER) //possessed players don't have spells, keep the action bar empty
|
||||
return;
|
||||
|
||||
for(uint32 x = 0; x < CREATURE_MAX_SPELLS; ++x)
|
||||
{
|
||||
if (IsPassiveSpell(((Creature*)m_unit)->m_spells[x]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue