Core/Spells: Add a base for brand new proc system, this is a WIP and doesn't affect currently working code.

This commit is contained in:
QAston
2011-07-10 13:13:02 +02:00
parent 22135f4d91
commit 72ea9c9fa8
10 changed files with 621 additions and 59 deletions
+2 -2
View File
@@ -19631,7 +19631,7 @@ void Player::RestoreSpellMods(Spell* spell, uint32 ownerAuraId, Aura* aura)
SpellModifier *mod = *itr;
// spellmods without aura set cannot be charged
if (!mod->ownerAura || !mod->ownerAura->GetCharges())
if (!mod->ownerAura || !mod->ownerAura->IsUsingCharges())
continue;
// Restore only specific owner aura mods
@@ -19689,7 +19689,7 @@ void Player::RemoveSpellMods(Spell* spell)
++itr;
// spellmods without aura set cannot be charged
if (!mod->ownerAura || !mod->ownerAura->GetCharges())
if (!mod->ownerAura || !mod->ownerAura->IsUsingCharges())
continue;
// check if mod affected this spell