aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2014-09-26 23:28:08 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2014-09-26 23:28:08 +0200
commiteb4ff759ecb844aceb0017c16b2732423f199b84 (patch)
tree48ba92ab0daafe20064d92a1ef2818ad458b7daa /src
parentb48ba56efd53e0430ec5d69a70fb1d141d7029c1 (diff)
Scripts/Spells: fixed typo in Improved Frost Presence
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dk.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp
index 1aa01d7ac7c..cacd480ceb0 100644
--- a/src/server/scripts/Spells/spell_dk.cpp
+++ b/src/server/scripts/Spells/spell_dk.cpp
@@ -873,7 +873,12 @@ class spell_dk_improved_frost_presence : public SpellScriptLoader
{
Unit* target = GetTarget();
if ((target->HasAura(SPELL_DK_BLOOD_PRESENCE) || target->HasAura(SPELL_DK_UNHOLY_PRESENCE)) && !target->HasAura(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED))
- target->CastCustomSpell(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED, SPELLVALUE_BASE_POINT0, aurEff->GetAmount(), target, true, NULL, aurEff);
+ {
+ CustomSpellValues val;
+ val.AddSpellMod(SPELLVALUE_BASE_POINT0, aurEff->GetAmount());
+ val.AddSpellMod(SPELLVALUE_BASE_POINT1, aurEff->GetAmount());
+ target->CastCustomSpell(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED, val, target, TRIGGERED_FULL_MASK, nullptr, aurEff);
+ }
}
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
@@ -1111,7 +1116,12 @@ class spell_dk_presence : public SpellScriptLoader
Unit* target = GetTarget();
if (AuraEffect const* impAurEff = target->GetAuraEffectOfRankedSpell(SPELL_DK_IMPROVED_FROST_PRESENCE_R1, EFFECT_0))
if (!target->HasAura(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED))
- target->CastCustomSpell(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED, SPELLVALUE_BASE_POINT0, impAurEff->GetAmount(), target, true, NULL, aurEff);
+ {
+ CustomSpellValues val;
+ val.AddSpellMod(SPELLVALUE_BASE_POINT0, impAurEff->GetAmount());
+ val.AddSpellMod(SPELLVALUE_BASE_POINT1, impAurEff->GetAmount());
+ target->CastCustomSpell(SPELL_DK_IMPROVED_FROST_PRESENCE_TRIGGERED, val, target, TRIGGERED_FULL_MASK, nullptr, aurEff);
+ }
}
void HandleImprovedUnholyPresence(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)