[12704] Fix (at least) two false positive startup errors

* Fix startup-error related to quest 10162
* Fix startup-error for spell 53821 (original author @Schmoozerd)
This commit is contained in:
sanctum32 2013-10-21 10:14:34 +03:00 committed by Antz
parent 1b9c1a44ee
commit a5a5009d44
4 changed files with 5 additions and 18 deletions

View file

@ -2649,7 +2649,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
// TODO - maybe use an (internal) value for the map for neat far teleport handling
// far-teleport spells are handled in SpellEffect, elsewise report an error about an unexpected map (spells are always locally)
if (st->target_mapId != m_caster->GetMapId() && spellEffect && spellEffect->Effect != SPELL_EFFECT_TELEPORT_UNITS)
if (st->target_mapId != m_caster->GetMapId() && spellEffect && spellEffect->Effect != SPELL_EFFECT_TELEPORT_UNITS && spellEffect->Effect != SPELL_EFFECT_BIND)
sLog.outError("SPELL: wrong map (%u instead %u) target coordinates for spell ID %u", st->target_mapId, m_caster->GetMapId(), m_spellInfo->Id);
}
else