From 6c099d0c26286558c8fbafdc7aba131159b369d8 Mon Sep 17 00:00:00 2001 From: ariel- Date: Sun, 2 Oct 2016 22:15:09 -0300 Subject: Core/Spells: Flag of Ownership shouldn't target creatures (cherry picked from commit b54042d68f5204758f641f9ddbd0218e773c2ae5) --- src/server/scripts/Spells/spell_item.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 4e699034780..a19a4e09b17 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -3165,6 +3165,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); -- cgit v1.2.3