mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[7557] Fixed triggered spells which ImplicitTarget is 0 like 50516 and ranks
This commit is contained in:
parent
8fb9c81e23
commit
4e66d61da9
2 changed files with 4 additions and 1 deletions
|
|
@ -593,6 +593,9 @@ void Spell::FillTargetMap()
|
||||||
case SPELL_EFFECT_REPUTATION:
|
case SPELL_EFFECT_REPUTATION:
|
||||||
if(m_targets.getUnitTarget())
|
if(m_targets.getUnitTarget())
|
||||||
tmpUnitMap.push_back(m_targets.getUnitTarget());
|
tmpUnitMap.push_back(m_targets.getUnitTarget());
|
||||||
|
// Triggered spells have additional spell targets - cast them even if no explicit unit target is given (required for spell 50516 for example)
|
||||||
|
else if(m_spellInfo->Effect[i] == SPELL_EFFECT_TRIGGER_SPELL)
|
||||||
|
tmpUnitMap.push_back(m_caster);
|
||||||
break;
|
break;
|
||||||
case SPELL_EFFECT_SUMMON_PLAYER:
|
case SPELL_EFFECT_SUMMON_PLAYER:
|
||||||
if(m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->GetSelection())
|
if(m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->GetSelection())
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7556"
|
#define REVISION_NR "7557"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue