mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +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
|
|
@ -495,7 +495,7 @@ void MotionMaster::MoveFall()
|
||||||
if (tz <= INVALID_HEIGHT)
|
if (tz <= INVALID_HEIGHT)
|
||||||
{
|
{
|
||||||
DEBUG_LOG("MotionMaster::MoveFall: unable retrive a proper height at map %u (x: %f, y: %f, z: %f).",
|
DEBUG_LOG("MotionMaster::MoveFall: unable retrive a proper height at map %u (x: %f, y: %f, z: %f).",
|
||||||
m_owner->GetMap()->GetId(), m_owner->GetPositionX(), m_owner->GetPositionX(), m_owner->GetPositionZ());
|
m_owner->GetMap()->GetId(), m_owner->GetPositionX(), m_owner->GetPositionY(), m_owner->GetPositionZ());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8517,13 +8517,12 @@ void Spell::EffectDuel(SpellEffectIndex eff_idx)
|
||||||
|
|
||||||
uint32 gameobject_id = m_spellInfo->EffectMiscValue[eff_idx];
|
uint32 gameobject_id = m_spellInfo->EffectMiscValue[eff_idx];
|
||||||
|
|
||||||
Map *map = m_caster->GetMap();
|
Map* map = m_caster->GetMap();
|
||||||
if(!pGameObj->Create(map->GenerateLocalLowGuid(HIGHGUID_GAMEOBJECT), gameobject_id,
|
float x = m_caster->GetPositionX() + unitTarget->GetPositionX() * 0.5f;
|
||||||
map, m_caster->GetPhaseMask(),
|
float y = m_caster->GetPositionY() + unitTarget->GetPositionY() * 0.5f;
|
||||||
m_caster->GetPositionX()+(unitTarget->GetPositionX()-m_caster->GetPositionX())/2 ,
|
float z = m_caster->GetPositionZ();
|
||||||
m_caster->GetPositionY()+(unitTarget->GetPositionY()-m_caster->GetPositionY())/2 ,
|
m_caster->UpdateAllowedPositionZ(x, y, z);
|
||||||
m_caster->GetPositionZ(),
|
if (!pGameObj->Create(map->GenerateLocalLowGuid(HIGHGUID_GAMEOBJECT), gameobject_id, map, m_caster->GetPhaseMask(), x, y, z, m_caster->GetOrientation()))
|
||||||
m_caster->GetOrientation()))
|
|
||||||
{
|
{
|
||||||
delete pGameObj;
|
delete pGameObj;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12045"
|
#define REVISION_NR "12046"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue