mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
Simplify check in reagent cheking code. Small code cleanups after recent commit.
This commit is contained in:
parent
f1cc9dc319
commit
fc684dc737
5 changed files with 10 additions and 10 deletions
|
|
@ -1171,7 +1171,8 @@ void Aura::UpdateSlotCounterAndDuration(bool add)
|
|||
SetAuraCharges(count);
|
||||
SendAuraUpdate(false);
|
||||
}
|
||||
bool Aura::isAffectedOnSpell(SpellEntry const *spell)
|
||||
|
||||
bool Aura::isAffectedOnSpell(SpellEntry const *spell) const
|
||||
{
|
||||
// Check family name
|
||||
if (spell->SpellFamilyName != m_spellProto->SpellFamilyName)
|
||||
|
|
@ -1184,6 +1185,7 @@ bool Aura::isAffectedOnSpell(SpellEntry const *spell)
|
|||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/*********************************************************/
|
||||
/*** BASIC AURA FUNCTION ***/
|
||||
/*********************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue