Change SPELL_EFFECT_SUMMON_PHANTAS to SPELL_EFFECT_FORCE_DESELECT and allow it to be casted with active pet
This fixes Mirror Image not changing names when Water Elemental is active. (Note that deselect effect is done in linked spells for Killing Spree/Shadowmeld) --HG-- branch : trunk
This commit is contained in:
1 parent
a4cb03d9cd
commit
c36a8d2d5f
4 files changed
+10
-13
No files matched your search
@@ -159,7 +159,7 @@ pEffect SpellEffects[TOTAL_SPELL_EFFECTS]=
|
||||
&Spell::EffectKillCreditPersonal, // 90 SPELL_EFFECT_KILL_CREDIT Kill credit but only for single person
|
||||
&Spell::EffectUnused, // 91 SPELL_EFFECT_THREAT_ALL one spell: zzOLDBrainwash
|
||||
&Spell::EffectEnchantHeldItem, // 92 SPELL_EFFECT_ENCHANT_HELD_ITEM
|
||||
&Spell::EffectUnused, // 93 SPELL_EFFECT_SUMMON_PHANTASM
|
||||
&Spell::EffectForceDeselect, // 93 SPELL_EFFECT_FORCE_DESELECT
|
||||
&Spell::EffectSelfResurrect, // 94 SPELL_EFFECT_SELF_RESURRECT
|
||||
&Spell::EffectSkinning, // 95 SPELL_EFFECT_SKINNING
|
||||
&Spell::EffectCharge, // 96 SPELL_EFFECT_CHARGE
|
||||
@@ -6636,6 +6636,13 @@ void Spell::EffectQuestComplete(uint32 i)
|
||||
_player->AreaExploredOrEventHappens(quest_id);
|
||||
}
|
||||
|
||||
void Spell::EffectForceDeselect(uint32 i)
|
||||
{
|
||||
WorldPacket data(SMSG_CLEAR_TARGET, 8);
|
||||
data << uint64(m_caster->GetGUID());
|
||||
m_caster->SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Spell::EffectSelfResurrect(uint32 i)
|
||||
{
|
||||
if(!unitTarget || unitTarget->isAlive())
|
||||
|
||||
Reference in new issue
Block a user