mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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:
|
||||
if(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;
|
||||
case SPELL_EFFECT_SUMMON_PLAYER:
|
||||
if(m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->GetSelection())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue