aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-11 15:38:31 -0700
committermaximius <none@none>2009-09-11 15:38:31 -0700
commitbb3522355dbcf38cb3ef2e45e48ba03cd9837fea (patch)
tree6cd3ccf33b0e4f40afe1546c0d7a5f5c353accc8
parent5366a16f3b377fe8578c384caa2a69b5be3e6747 (diff)
*[8471] Little correction to prev. commit. Spell effect 90 seems to be kill credit but only for single person. Author: ApoC
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index ff2af87ad44..89fb9e88c8a 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -154,7 +154,7 @@ pEffect SpellEffects[TOTAL_SPELL_EFFECTS]=
&Spell::EffectWMODamage, // 87 SPELL_EFFECT_WMO_DAMAGE
&Spell::EffectWMORepair, // 88 SPELL_EFFECT_WMO_REPAIR
&Spell::EffectUnused, // 89 SPELL_EFFECT_WMO_CHANGE
- &Spell::EffectKillCredit, // 90 SPELL_EFFECT_KILL_CREDIT
+ &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
@@ -6876,6 +6876,14 @@ void Spell::EffectStealBeneficialBuff(uint32 i)
}
}
+void Spell::EffectKillCreditPersonal(uint32 i)
+{
+ if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
+ return;
+
+ ((Player*)unitTarget)->KilledMonsterCredit(m_spellInfo->EffectMiscValue[i], unitTarget);
+}
+
void Spell::EffectKillCredit(uint32 i)
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)