mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[11288] Check IsPositiveEffect in IsPositiveSpell only for existed effects.
Thanks to NoFantasy for problem research. Also make IsPositiveEffect use SpellEntry* arg instead spell id.
This commit is contained in:
parent
dae28ae93a
commit
989d229968
9 changed files with 24 additions and 21 deletions
|
|
@ -385,7 +385,7 @@ m_isPersistent(false), m_in_use(0), m_spellAuraHolder(holder)
|
|||
|
||||
bool isPassive = IsPassiveSpell(GetSpellProto());
|
||||
bool isPermanent = false;
|
||||
m_positive = IsPositiveEffect(spellproto->Id, m_effIndex);
|
||||
m_positive = IsPositiveEffect(spellproto, m_effIndex);
|
||||
|
||||
m_applyTime = time(NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue