mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
Removed direct use of some updatefields
This commit is contained in:
parent
768fa2d2de
commit
efdb8e01dd
13 changed files with 122 additions and 51 deletions
|
|
@ -2000,7 +2000,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
( GetSpellProto()->EffectApplyAuraName[0]==1 || GetSpellProto()->EffectApplyAuraName[0]==128 ) ) )
|
||||
{
|
||||
// spells with SpellEffect=72 and aura=4: 6196, 6197, 21171, 21425
|
||||
m_target->SetUInt64Value(PLAYER_FARSIGHT, 0);
|
||||
((Player*)m_target)->SetFarSight(NULL);
|
||||
WorldPacket data(SMSG_CLEAR_FAR_SIGHT_IMMEDIATE, 0);
|
||||
((Player*)m_target)->GetSession()->SendPacket(&data);
|
||||
return;
|
||||
|
|
@ -2858,7 +2858,7 @@ void Aura::HandleBindSight(bool apply, bool Real)
|
|||
if(!caster || caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
caster->SetUInt64Value(PLAYER_FARSIGHT,apply ? m_target->GetGUID() : 0);
|
||||
((Player*)caster)->SetFarSight(apply ? m_target->GetGUID() : NULL);
|
||||
}
|
||||
|
||||
void Aura::HandleFarSight(bool apply, bool Real)
|
||||
|
|
@ -2867,7 +2867,7 @@ void Aura::HandleFarSight(bool apply, bool Real)
|
|||
if(!caster || caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
caster->SetUInt64Value(PLAYER_FARSIGHT,apply ? m_modifier.m_miscvalue : 0);
|
||||
((Player*)caster)->SetFarSight(apply ? m_target->GetGUID() : NULL);
|
||||
}
|
||||
|
||||
void Aura::HandleAuraTrackCreatures(bool apply, bool Real)
|
||||
|
|
@ -2974,7 +2974,7 @@ void Aura::HandleModPossess(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
if(caster->GetTypeId() == TYPEID_PLAYER)
|
||||
caster->SetUInt64Value(PLAYER_FARSIGHT,apply ? m_target->GetGUID() : 0);
|
||||
((Player*)caster)->SetFarSight(apply ? m_target->GetGUID() : NULL);
|
||||
}
|
||||
|
||||
void Aura::HandleModPossessPet(bool apply, bool Real)
|
||||
|
|
@ -2989,15 +2989,13 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
|
|||
return;
|
||||
|
||||
if(apply)
|
||||
{
|
||||
caster->SetUInt64Value(PLAYER_FARSIGHT, m_target->GetGUID());
|
||||
m_target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNKNOWN5);
|
||||
}
|
||||
else
|
||||
{
|
||||
caster->SetUInt64Value(PLAYER_FARSIGHT, 0);
|
||||
m_target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNKNOWN5);
|
||||
}
|
||||
|
||||
((Player*)caster)->SetFarSight(apply ? m_target->GetGUID() : NULL);
|
||||
((Player*)caster)->SetCharm(apply ? m_target : NULL);
|
||||
((Player*)caster)->SetClientControl(m_target, apply ? 1 : 0);
|
||||
}
|
||||
|
||||
void Aura::HandleModCharm(bool apply, bool Real)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue