fix(Core/Spells): Changing druid forms should not remove items auras triggered on use. (#6135)

- Closes #5637
- Closes https://github.com/chromiecraft/chromiecraft/issues/525
This commit is contained in:
UltraNix
2021-06-05 13:52:09 +02:00
committed by GitHub
parent d2ad99fb68
commit 617a935ee4

View File

@@ -8618,7 +8618,7 @@ void Player::ApplyItemEquipSpell(Item* item, bool apply, bool form_change)
continue;
// wrong triggering type
if (apply && spellData.SpellTrigger != ITEM_SPELLTRIGGER_ON_EQUIP)
if ((apply || form_change) && spellData.SpellTrigger != ITEM_SPELLTRIGGER_ON_EQUIP)
continue;
// check if it is valid spell