Implementation of QAston proc system

This commit is contained in:
hondacrx
2017-08-14 08:12:31 -04:00
parent df8f6133b3
commit 9a039f35a2
23 changed files with 1083 additions and 1730 deletions
+3 -3
View File
@@ -643,12 +643,12 @@ namespace Scripts.Spells.Druid
void HandleProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
PreventDefaultAction();
SpellInfo spellInfo = eventInfo.GetSpellInfo();
if (spellInfo == null)
Spell spell = eventInfo.GetProcSpell();
if (spell == null)
return;
Unit caster = eventInfo.GetActor();
var costs = spellInfo.CalcPowerCost(caster, spellInfo.GetSchoolMask());
var costs = spell.GetPowerCost();
var m = costs.First(cost => { return cost.Power == PowerType.Mana; });
if (m == null)
return;