mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix: Crash (#13241)
This commit is contained in:
@@ -744,7 +744,7 @@ class spell_warl_seed_of_corruption_dummy : public AuraScript
|
||||
return;
|
||||
|
||||
uint32 spellId = sSpellMgr->GetSpellWithRank(SPELL_WARLOCK_SEED_OF_CORRUPTION_DAMAGE_R1, GetSpellInfo()->GetRank());
|
||||
caster->CastSpell(eventInfo.GetActionTarget(), spellId, aurEff);
|
||||
caster->CastSpell(eventInfo.GetActionTarget(), spellId, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -789,7 +789,7 @@ class spell_warl_seed_of_corruption_generic : public AuraScript
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
caster->CastSpell(eventInfo.GetActionTarget(), SPELL_WARLOCK_SEED_OF_CORRUPTION_GENERIC, aurEff);
|
||||
caster->CastSpell(eventInfo.GetActionTarget(), SPELL_WARLOCK_SEED_OF_CORRUPTION_GENERIC, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -859,7 +859,7 @@ class spell_warl_soul_leech : public AuraScript
|
||||
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
int32 bp = CalculatePct(static_cast<int32>(damageInfo->GetDamage()), aurEff->GetAmount());
|
||||
caster->CastCustomSpell(SPELL_WARLOCK_SOUL_LEECH_HEAL, SPELLVALUE_BASE_POINT0, bp, caster, true);
|
||||
caster->CastCustomSpell(SPELL_WARLOCK_SOUL_LEECH_HEAL, SPELLVALUE_BASE_POINT0, bp, caster, true, nullptr, aurEff);
|
||||
|
||||
// Improved Soul Leech code below
|
||||
AuraEffect const* impSoulLeech = GetTarget()->GetAuraEffectOfRankedSpell(SPELL_WARLOCK_IMP_SOUL_LEECH_R1, EFFECT_1, aurEff->GetCasterGUID());
|
||||
@@ -870,11 +870,11 @@ class spell_warl_soul_leech : public AuraScript
|
||||
uint32 selfSpellId = casterMana[impSoulLeechRank - 1];
|
||||
uint32 petSpellId = petMana[impSoulLeechRank - 1];
|
||||
|
||||
caster->CastSpell((Unit*)nullptr, selfSpellId, true);
|
||||
caster->CastSpell((Unit*)nullptr, petSpellId, true);
|
||||
caster->CastSpell((Unit*)nullptr, selfSpellId, true, nullptr, aurEff);
|
||||
caster->CastSpell((Unit*)nullptr, petSpellId, true, nullptr, aurEff);
|
||||
|
||||
if (roll_chance_i(impSoulLeech->GetAmount()))
|
||||
caster->CastSpell((Unit*)nullptr, SPELL_REPLENISHMENT, true);
|
||||
caster->CastSpell((Unit*)nullptr, SPELL_REPLENISHMENT, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -1274,7 +1274,7 @@ class spell_warl_t4_2p_bonus : public AuraScript
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
caster->CastSpell(caster, TriggerSpellId, aurEff);
|
||||
caster->CastSpell(caster, TriggerSpellId, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -1428,7 +1428,7 @@ class spell_warl_glyph_of_corruption_nightfall : public AuraScript
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
caster->CastSpell(caster, SPELL_WARLOCK_SHADOW_TRANCE, aurEff);
|
||||
caster->CastSpell(caster, SPELL_WARLOCK_SHADOW_TRANCE, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -1451,7 +1451,7 @@ class spell_warl_glyph_of_life_tap : public AuraScript
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit* caster = eventInfo.GetActor();
|
||||
caster->CastSpell(caster, SPELL_WARLOCK_GLYPH_OF_LIFE_TAP_TRIGGERED, aurEff);
|
||||
caster->CastSpell(caster, SPELL_WARLOCK_GLYPH_OF_LIFE_TAP_TRIGGERED, true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user