mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7680] Fixed work spell effects with 17/0 spell target mode. Including many summon/teleport spells.
This commit is contained in:
parent
f926232efb
commit
b4bc910d32
2 changed files with 18 additions and 7 deletions
|
|
@ -487,13 +487,24 @@ void Spell::FillTargetMap()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TARGET_TABLE_X_Y_Z_COORDINATES:
|
case TARGET_TABLE_X_Y_Z_COORDINATES:
|
||||||
// All 17/7 pairs used for dest teleportation, A processed in effect code
|
switch(m_spellInfo->EffectImplicitTargetB[i])
|
||||||
if(m_spellInfo->EffectImplicitTargetB[i]==TARGET_AREAEFFECT_INSTANT)
|
|
||||||
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
SetTargetMap(i,m_spellInfo->EffectImplicitTargetA[i],tmpUnitMap);
|
case 0:
|
||||||
SetTargetMap(i,m_spellInfo->EffectImplicitTargetB[i],tmpUnitMap);
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7679"
|
#define REVISION_NR "7680"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue