mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Merge branch 'master' into 310
Conflicts: src/game/Unit.cpp
This commit is contained in:
commit
2a8776e567
14 changed files with 196 additions and 125 deletions
|
|
@ -10165,11 +10165,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