@@ -2089,7 +2089,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
|||||||
trigger->SetUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
|
trigger->SetUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
|
||||||
if (owner->IsFFAPvP())
|
if (owner->IsFFAPvP())
|
||||||
{
|
{
|
||||||
if (!HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))
|
if (!trigger->HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP))
|
||||||
{
|
{
|
||||||
sScriptMgr->OnFfaPvpStateUpdate(trigger, true);
|
sScriptMgr->OnFfaPvpStateUpdate(trigger, true);
|
||||||
trigger->SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP);
|
trigger->SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP);
|
||||||
|
|||||||
Reference in New Issue
Block a user