fix(Scripts/Spells): Replenishment should proc off from Vampiric Touc… (#11772)

* fix(Scripts/Spells): Replenishment should proc off from Vampiric Touch even if target died from Mind Blast.

Fixes #8502

* Update.
This commit is contained in:
UltraNix
2022-05-23 10:45:01 +02:00
committed by GitHub
parent 34943f1f4b
commit bcfaf2daad
5 changed files with 27 additions and 9 deletions

View File

@@ -6965,7 +6965,7 @@ void Player::ApplyItemEquipSpell(Item* item, bool apply, bool form_change)
continue;
// Spells that should stay on the caster after removing the item.
constexpr std::array<uint32, 1> spellExceptions = { /*Electromagnetic Gigaflux Reactivator*/ 11826 };
constexpr std::array<int32, 1> spellExceptions = { /*Electromagnetic Gigaflux Reactivator*/ 11826 };
const auto found = std::find(std::begin(spellExceptions), std::end(spellExceptions), spellData.SpellId);
// wrong triggering type