From b5206453f6135fe1a7f93560e82db0e58aa77243 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 3 Mar 2022 13:37:48 -0500 Subject: [PATCH] Core/AI: Remove code that removed UNIT_DYNFLAG_LOOTABLE from possessed units Port From (https://github.com/TrinityCore/TrinityCore/commit/7d548c34a961f4dd5e1a831e0a414970a4abff8c) --- Source/Game/AI/CoreAI/PassiveAI.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/Game/AI/CoreAI/PassiveAI.cs b/Source/Game/AI/CoreAI/PassiveAI.cs index 3466d7d79..b7b000afc 100644 --- a/Source/Game/AI/CoreAI/PassiveAI.cs +++ b/Source/Game/AI/CoreAI/PassiveAI.cs @@ -68,13 +68,6 @@ namespace Game.AI me.RemoveDynamicFlag(UnitDynFlags.Lootable); } - public override void KilledUnit(Unit victim) - { - // We killed a creature, disable victim's loot - if (victim.IsTypeId(TypeId.Unit)) - me.RemoveDynamicFlag(UnitDynFlags.Lootable); - } - public override void MoveInLineOfSight(Unit who) { } public override void JustEnteredCombat(Unit who)