[7680] Fixed work spell effects with 17/0 spell target mode. Including many summon/teleport spells.

This commit is contained in:
VladimirMangos 2009-04-17 16:34:59 +04:00
parent f926232efb
commit b4bc910d32
2 changed files with 18 additions and 7 deletions

View file

@ -487,13 +487,24 @@ void Spell::FillTargetMap()
}
break;
case TARGET_TABLE_X_Y_Z_COORDINATES:
// All 17/7 pairs used for dest teleportation, A processed in effect code
if(m_spellInfo->EffectImplicitTargetB[i]==TARGET_AREAEFFECT_INSTANT)
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
else
switch(m_spellInfo->EffectImplicitTargetB[i])
{
SetTargetMap(i,m_spellInfo->EffectImplicitTargetA[i],tmpUnitMap);
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
case 0:
SetTargetMap(i,m_spellInfo->EffectImplicitTargetA[i],tmpUnitMap);
// need some target for proccesing
if(m_targets.getUnitTarget())
tmpUnitMap.push_back(m_targets.getUnitTarget());
else
tmpUnitMap.push_back(m_caster);
break;
case TARGET_AREAEFFECT_INSTANT: // All 17/7 pairs used for dest teleportation, A processed in effect code
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
break;
default:
SetTargetMap(i,m_spellInfo->EffectImplicitTargetA[i],tmpUnitMap);
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
break;
}
break;
default:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7679"
#define REVISION_NR "7680"
#endif // __REVISION_NR_H__