From ac084e4ddc8cea271c88dcb38264b49880e9e83c Mon Sep 17 00:00:00 2001 From: ariel- Date: Sun, 2 Oct 2016 22:15:09 -0300 Subject: [PATCH] Core/Spells: Flag of Ownership shouldn't target creatures --- src/server/scripts/Spells/spell_item.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index f1b38af8207..3dcb8dbab52 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -2751,6 +2751,11 @@ class spell_item_taunt_flag_targeting : public SpellScriptLoader void FilterTargets(std::list& targets) { + targets.remove_if([](WorldObject* obj) -> bool + { + return obj->GetTypeId() != TYPEID_PLAYER && obj->GetTypeId() != TYPEID_CORPSE; + }); + if (targets.empty()) { FinishCast(SPELL_FAILED_NO_VALID_TARGETS);