mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[12134] Fix Build from Backport.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
95b908d820
commit
dc47c070b3
3 changed files with 4 additions and 5 deletions
|
|
@ -7964,7 +7964,6 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
|
|||
}
|
||||
// These are not restored
|
||||
case POWER_FOCUS:
|
||||
case POWER_HAPPINESS:
|
||||
case POWER_RUNE:
|
||||
case POWER_HEALTH:
|
||||
break;
|
||||
|
|
@ -9945,7 +9944,7 @@ void Spell::EffectCancelAura(SpellEffectEntry const* effect)
|
|||
unitTarget->RemoveAurasDueToSpell(spellId);
|
||||
}
|
||||
|
||||
void Spell::EffectKnockBackFromPosition(SpellEffectIndex eff_idx)
|
||||
void Spell::EffectKnockBackFromPosition(SpellEffectEntry const* effect)
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
|
@ -9957,7 +9956,7 @@ void Spell::EffectKnockBackFromPosition(SpellEffectIndex eff_idx)
|
|||
m_caster->GetPosition(x, y, z);
|
||||
|
||||
float angle = unitTarget->GetAngle(x,y) + M_PI_F;
|
||||
float horizontalSpeed = m_spellInfo->EffectMiscValue[eff_idx] * 0.1f;
|
||||
float horizontalSpeed = effect->EffectMiscValue * 0.1f;
|
||||
float verticalSpeed = damage * 0.1f;
|
||||
unitTarget->KnockBackWithAngle(angle, horizontalSpeed, verticalSpeed);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
|
|||
}
|
||||
|
||||
DEBUG_LOG("WORLD: got cast spell packet, spellId - %u, cast_count: %u, cast_flags %u, data length = " SIZEFMTD,
|
||||
spellId, cast_count, unk_flags, recvPacket.size());
|
||||
spellId, cast_count, cast_flags, recvPacket.size());
|
||||
|
||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12133"
|
||||
#define REVISION_NR "12134"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue