mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[12046] Fix an error with debug output for MoveFall. Thx to stfx for pointing
This commit is contained in:
parent
213adc7ab0
commit
d46098961a
3 changed files with 8 additions and 9 deletions
|
|
@ -8517,13 +8517,12 @@ void Spell::EffectDuel(SpellEffectIndex eff_idx)
|
|||
|
||||
uint32 gameobject_id = m_spellInfo->EffectMiscValue[eff_idx];
|
||||
|
||||
Map *map = m_caster->GetMap();
|
||||
if(!pGameObj->Create(map->GenerateLocalLowGuid(HIGHGUID_GAMEOBJECT), gameobject_id,
|
||||
map, m_caster->GetPhaseMask(),
|
||||
m_caster->GetPositionX()+(unitTarget->GetPositionX()-m_caster->GetPositionX())/2 ,
|
||||
m_caster->GetPositionY()+(unitTarget->GetPositionY()-m_caster->GetPositionY())/2 ,
|
||||
m_caster->GetPositionZ(),
|
||||
m_caster->GetOrientation()))
|
||||
Map* map = m_caster->GetMap();
|
||||
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()))
|
||||
{
|
||||
delete pGameObj;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue