mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +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
|
|
@ -2705,6 +2705,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
targetUnitMap.push_back(owner);
|
||||
}
|
||||
break;
|
||||
case SPELL_EFFECT_TELEPORT_UNITS:
|
||||
case SPELL_EFFECT_SUMMON:
|
||||
case SPELL_EFFECT_SUMMON_CHANGE_ITEM:
|
||||
case SPELL_EFFECT_TRANS_DOOR:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11846"
|
||||
#define REVISION_NR "11847"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue