Additional check for players to avoid adding spell effects to db that are HO with no icon/duration
This commit is contained in:
parent
108af53730
commit
42f776168f
@ -3476,6 +3476,9 @@ void Player::AddSpellEffect(LuaSpell* luaspell, int32 override_expire_time){
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Spell* spell = luaspell->spell;
|
Spell* spell = luaspell->spell;
|
||||||
|
if(spell->GetSpellData() && spell->GetSpellData()->icon == 0 && spell->GetSpellData()->duration1 == 0 && spell->GetSpellData()->duration2 == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
SpellEffects* old_effect = GetSpellEffect(spell->GetSpellID(), luaspell->caster);
|
SpellEffects* old_effect = GetSpellEffect(spell->GetSpellID(), luaspell->caster);
|
||||||
SpellEffects* effect = 0;
|
SpellEffects* effect = 0;
|
||||||
if (old_effect){
|
if (old_effect){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user