aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-29 22:11:15 +0200
committerQAston <none@none>2009-07-29 22:11:15 +0200
commit5d920ddbc3b23721aea58ef4c075549550845f70 (patch)
tree1d4f7225b3fed207518fe89ec777743ef2e907e5 /src
parentf4a90873b4e3b15547565be2e387da488e9412fd (diff)
*Allow SPELL_EFFECT_FORCE_CAST (140) to trigger spells with basepoints
*Correct target selection for unrelenting assault - by thenecromancer. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp4
-rw-r--r--src/game/SpellEffects.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index a94b681ab0b..2a072cf817f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2614,11 +2614,11 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real, bool changeAmount)
{
// Unrelenting Assault, rank 1
case 46859:
- caster->CastSpell(m_target,64849,true,NULL,aurEff);
+ m_target->CastSpell(m_target,64849,true,NULL,aurEff);
break;
// Unrelenting Assault, rank 2
case 46860:
- caster->CastSpell(m_target,64850,true,NULL,aurEff);
+ m_target->CastSpell(m_target,64850,true,NULL,aurEff);
break;
}
}
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 25ea3015f41..bb4147cff6c 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2028,7 +2028,7 @@ void Spell::EffectForceCast(uint32 i)
return;
}
- unitTarget->CastSpell(unitTarget, spellInfo, true, NULL, NULL, m_originalCasterGUID);
+ unitTarget->CastCustomSpell(unitTarget, spellInfo->Id, &damage, NULL, NULL, true, NULL, NULL, m_originalCasterGUID);
}
void Spell::EffectTriggerSpell(uint32 i)