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
+2 -2
View File
@@ -72,7 +72,7 @@ namespace Game.Loots
foreach (var itemEffect in pProto.Effects)
{
if (itemEffect.TriggerType != ItemSpelltriggerType.LearnSpellId)
if (itemEffect.TriggerType != ItemSpelltriggerType.OnLearn)
continue;
if (player.HasSpell((uint)itemEffect.SpellID))
@@ -85,7 +85,7 @@ namespace Game.Loots
{
foreach (var itemEffect in pProto.Effects)
{
if (itemEffect.TriggerType != ItemSpelltriggerType.LearnSpellId)
if (itemEffect.TriggerType != ItemSpelltriggerType.OnLearn)
continue;
if (player.HasSpell((uint)itemEffect.SpellID))