*Allow triggered spells with spellfamilyflags to trigger other ones if spellprocevent for triggering aura has specified spellfamily.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-03-17 19:07:38 +01:00
parent b1da219266
commit 98eb343d10
5 changed files with 26 additions and 42 deletions
+2 -4
View File
@@ -262,16 +262,14 @@ class TRINITY_DLL_SPEC Aura
if (m_procCharges == charges)
return;
m_procCharges = charges;
if(GetAuraSlot() < MAX_AURAS) // slot found send data to client
{ m_target->UpdateAuraForGroup(GetAuraSlot()); }
m_target->UpdateAuraForGroup(GetAuraSlot());
}
bool DropAuraCharge() // return true if last charge dropped
{
if (m_procCharges == 0)
return false;
m_procCharges--;
if(GetAuraSlot() < MAX_AURAS) // slot found send data to client
{ m_target->UpdateAuraForGroup(GetAuraSlot()); }
m_target->UpdateAuraForGroup(GetAuraSlot());
return m_procCharges == 0;
}