Backed out changeset eb07c8f645e8

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