diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-10-02 22:15:09 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2016-10-02 22:15:09 -0300 |
commit | b54042d68f5204758f641f9ddbd0218e773c2ae5 (patch) | |
tree | 74cedeb677d9dbb03bfea2254dfd00f748224c3a | |
parent | bdf7cf6d50f0ab3409d66cd6bcc1fb783053608b (diff) |
Core/Spells: Flag of Ownership shouldn't target creatures
-rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 5 |
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); |