Core/Spells: Flag of Ownership shouldn't target creatures

This commit is contained in:
ariel- authored and Aokromes committed 2016-10-03 14:58:07 +02:00
1 parent 6ee820afe4
commit ac084e4ddc
1 file changed
+5
+5
View File
@@ -2751,6 +2751,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);