Core/Items: Implemented item effect trigger type 7 (On Looted)

Port From (https://github.com/TrinityCore/TrinityCore/commit/372c84e998a090185f822a228c407911cbc821f1)
This commit is contained in:
hondacrx
2022-05-31 16:00:10 -04:00
parent a47ecd34e9
commit 108abf92cd
6 changed files with 32 additions and 18 deletions
+3 -3
View File
@@ -1496,7 +1496,7 @@ namespace Game.Entities
foreach (ItemEffectRecord effectData in item.GetEffects())
{
// wrong triggering type
if (effectData.TriggerType != ItemSpelltriggerType.OnUse)
if (effectData.TriggerType != ItemSpelltriggerType.OnProc)
continue;
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo((uint)effectData.SpellID, Difficulty.None);
@@ -1783,7 +1783,7 @@ namespace Game.Entities
foreach (ItemEffectRecord effect in item.GetEffects())
{
if (effect.TriggerType != ItemSpelltriggerType.OnObtain) // On obtain trigger
if (effect.TriggerType != ItemSpelltriggerType.OnPickup) // On obtain trigger
continue;
int spellId = effect.SpellID;
@@ -3295,7 +3295,7 @@ namespace Game.Entities
foreach (ItemEffectRecord effectData in item.GetEffects())
{
// wrong triggering type
if (effectData.TriggerType != ItemSpelltriggerType.ChanceOnHit)
if (effectData.TriggerType != ItemSpelltriggerType.OnProc)
continue;
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo((uint)effectData.SpellID, Difficulty.None);