mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[11847] Fix teleport spells with TargetType (TARGET_TABLE_X_Y_Z_COORDINATES, NO_TARGET)
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
f4d862ac0a
commit
a427718cab
3 changed files with 8 additions and 2 deletions
|
|
@ -3600,7 +3600,12 @@ void Spell::EffectTeleportUnits(SpellEffectIndex eff_idx)
|
|||
if(!unitTarget || unitTarget->IsTaxiFlying())
|
||||
return;
|
||||
|
||||
switch (m_spellInfo->EffectImplicitTargetB[eff_idx])
|
||||
// Target dependend on TargetB, if there is none provided, decide dependend on A
|
||||
uint32 targetType = m_spellInfo->EffectImplicitTargetB[eff_idx];
|
||||
if (!targetType)
|
||||
targetType = m_spellInfo->EffectImplicitTargetA[eff_idx];
|
||||
|
||||
switch (targetType)
|
||||
{
|
||||
case TARGET_INNKEEPER_COORDINATES:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue