aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-10-02 22:15:09 -0300
committerariel- <ariel-@users.noreply.github.com>2016-10-02 22:15:09 -0300
commitb54042d68f5204758f641f9ddbd0218e773c2ae5 (patch)
tree74cedeb677d9dbb03bfea2254dfd00f748224c3a /src
parentbdf7cf6d50f0ab3409d66cd6bcc1fb783053608b (diff)
Core/Spells: Flag of Ownership shouldn't target creatures
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index 562625e22f5..88f0899ee22 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -3190,6 +3190,11 @@ class spell_item_taunt_flag_targeting : public SpellScriptLoader
void FilterTargets(std::list<WorldObject*>& 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);