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
@@ -1444,10 +1444,10 @@ namespace Scripts.Spells.Items
{
bool CheckProc(ProcEventInfo eventInfo)
{
SpellInfo spellInfo = eventInfo.GetSpellInfo();
if (spellInfo != null)
Spell spell = eventInfo.GetProcSpell();
if (spell != null)
{
var costs = spellInfo.CalcPowerCost(GetTarget(), spellInfo.GetSchoolMask());
var costs = spell.GetPowerCost();
var m = costs.FirstOrDefault(cost => { return cost.Power == PowerType.Mana && cost.Amount > 0; });
if (m != null)
return true;