aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-11-19 19:56:46 -0300
committerariel- <ariel-@users.noreply.github.com>2016-11-19 19:56:46 -0300
commit9b00fd8d7bebacb5ab113c0a24a65ccfbb25ad25 (patch)
tree84bac1bef3fcaef6d7f95861efd2b69fc2cefcfd
parent16c14593dc860f5c61b1c2f1ca9301d63580ea74 (diff)
Core/Scripts: fixed Imp. Leader of the Pack
Closes #12830
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index 6d6e8052579..56624346772 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -915,11 +915,10 @@ class spell_dru_leader_of_the_pack : public SpellScriptLoader
if (aurEff->GetCasterGUID() != caster->GetGUID())
return;
- AuraEffect const* impLotpMana = caster->GetAuraEffectOfRankedSpell(SPELL_DRUID_IMP_LEADER_OF_THE_PACK_R1, EFFECT_1, aurEff->GetCasterGUID());
- if (!impLotpMana)
- return;
+ AuraEffect const* impLotpMana = caster->GetAuraEffectOfRankedSpell(SPELL_DRUID_IMP_LEADER_OF_THE_PACK_R1, EFFECT_0, aurEff->GetCasterGUID());
+ ASSERT(impLotpMana);
- int32 manaAmount = CalculatePct(static_cast<int32>(caster->GetMaxPower(POWER_MANA)), impLotpMana->GetAmount());
+ int32 manaAmount = CalculatePct(static_cast<int32>(caster->GetMaxPower(POWER_MANA)), impLotpMana->GetSpellInfo()->Effects[EFFECT_1].CalcValue());
caster->CastCustomSpell(SPELL_DRUID_IMP_LEADER_OF_THE_PACK_MANA, SPELLVALUE_BASE_POINT0, manaAmount, (Unit*)nullptr, true, nullptr, aurEff);
}