mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fixup recent commit :( thx for pointing
This commit is contained in:
parent
d46098961a
commit
bd5340b3a9
1 changed files with 2 additions and 2 deletions
|
|
@ -8518,8 +8518,8 @@ void Spell::EffectDuel(SpellEffectIndex eff_idx)
|
|||
uint32 gameobject_id = m_spellInfo->EffectMiscValue[eff_idx];
|
||||
|
||||
Map* map = m_caster->GetMap();
|
||||
float x = m_caster->GetPositionX() + unitTarget->GetPositionX() * 0.5f;
|
||||
float y = m_caster->GetPositionY() + unitTarget->GetPositionY() * 0.5f;
|
||||
float x = (m_caster->GetPositionX() + unitTarget->GetPositionX()) * 0.5f;
|
||||
float y = (m_caster->GetPositionY() + unitTarget->GetPositionY()) * 0.5f;
|
||||
float z = m_caster->GetPositionZ();
|
||||
m_caster->UpdateAllowedPositionZ(x, y, z);
|
||||
if (!pGameObj->Create(map->GenerateLocalLowGuid(HIGHGUID_GAMEOBJECT), gameobject_id, map, m_caster->GetPhaseMask(), x, y, z, m_caster->GetOrientation()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue