Some Fixes for Earth Shield.

Now Dispel and Spellsteal effects will correctly dispel and steal Earth Shield's charges instead of entire aura.

--HG--
branch : trunk
This commit is contained in:
Astellar
2010-01-07 23:31:46 +03:00
parent 7a43ad959f
commit c239c380df
2 changed files with 37 additions and 11 deletions

View File

@@ -3751,7 +3751,9 @@ void Spell::EffectDispel(uint32 i)
continue;
}
for (uint8 i = aur->GetStackAmount(); i; --i)
bool dispel_charges = aur->GetSpellProto()->AttributesEx7 & SPELL_ATTR_EX7_DISPEL_CHARGES;
for (uint8 i = dispel_charges ? aur->GetAuraCharges() : aur->GetStackAmount(); i; --i)
dispel_list.push_back(aur);
}
}