mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9187] Fixed problem with non-attackable pes/totems at arenas
... and other FFA areas. Problem is result chnages in related flags work after old 3.x switch. * Added high-level functions for FFAPvP state set for unit * Apply FFA PvP to all controlled units also at set, and at summon/load
This commit is contained in:
parent
6704929d56
commit
cc062f16ac
9 changed files with 45 additions and 15 deletions
|
|
@ -4419,6 +4419,9 @@ void Spell::EffectSummonPet(uint32 i)
|
|||
if(m_caster->IsPvP())
|
||||
NewSummon->SetPvP(true);
|
||||
|
||||
if(m_caster->IsFFAPvP())
|
||||
NewSummon->SetFFAPvP(true);
|
||||
|
||||
NewSummon->InitStatsForLevel(petlevel, m_caster);
|
||||
NewSummon->InitPetCreateSpells();
|
||||
NewSummon->InitLevelupSpellsForLevel();
|
||||
|
|
@ -5934,6 +5937,9 @@ void Spell::EffectSummonTotem(uint32 i, uint8 slot)
|
|||
if(m_caster->IsPvP())
|
||||
pTotem->SetPvP(true);
|
||||
|
||||
if(m_caster->IsFFAPvP())
|
||||
pTotem->SetFFAPvP(true);
|
||||
|
||||
pTotem->Summon(m_caster);
|
||||
|
||||
if(slot < MAX_TOTEM && m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue