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

This commit is contained in:
ariel-
2016-10-02 22:15:09 -03:00
parent bdf7cf6d50
commit b54042d68f

View File

@@ -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);