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
+2 -5
View File
@@ -442,17 +442,14 @@ namespace Scripts.Spells.Shaman
bool CheckProc(ProcEventInfo eventInfo)
{
return eventInfo.GetSpellInfo() != null;
return eventInfo.GetProcSpell() != null;
}
void HandleProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
PreventDefaultAction();
SpellInfo spellInfo = eventInfo.GetSpellInfo();
if (spellInfo == null)
return;
var costs = eventInfo.GetDamageInfo().GetSpellInfo().CalcPowerCost(GetTarget(), eventInfo.GetDamageInfo().GetSchoolMask());
var costs = eventInfo.GetProcSpell().GetPowerCost();
var m = costs.Find(cost => cost.Power == PowerType.Mana);
if (m != null)
{