mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10074] Add IsPassive(SpellEntry*) function and use in cases wjern entry already known.
Some other small code cleanups
This commit is contained in:
parent
6ca609629c
commit
07a931e141
12 changed files with 35 additions and 33 deletions
|
|
@ -2832,7 +2832,7 @@ void ChatHandler::ShowSpellListHelper(Player* target, SpellEntry const* spellInf
|
|||
uint32 talentCost = GetTalentSpellCost(id);
|
||||
|
||||
bool talent = (talentCost > 0);
|
||||
bool passive = IsPassiveSpell(id);
|
||||
bool passive = IsPassiveSpell(spellInfo);
|
||||
bool active = target && target->HasAura(id);
|
||||
|
||||
// unit32 used to prevent interpreting uint8 as char at output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue