From cd1df639b26e6c9bf6adb3f928c26d9ecfdfb087 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 12 Jul 2011 07:34:42 +0200 Subject: Core/Spells: Define and implement SPELL_ATTR2_CANT_TARGET_TAPPED attribute. --- src/server/game/Spells/Spell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Spells/Spell.cpp') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index cd88e048537..a68cbbbd194 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4731,8 +4731,8 @@ SpellCastResult Spell::CheckCast(bool strict) if (m_caster->GetTypeId() == TYPEID_PLAYER) { - // Do not allow to banish target tapped by someone not in caster's group - if (m_spellInfo->Mechanic == MECHANIC_BANISH) + // Do not these spells to target creatures not tapped by us (Banish, Polymorph, many quest spells) + if (m_spellInfo->AttributesEx2 & SPELL_ATTR2_CANT_TARGET_TAPPED) if (Creature *targetCreature = target->ToCreature()) if (targetCreature->hasLootRecipient() && !targetCreature->isTappedBy(m_caster->ToPlayer())) return SPELL_FAILED_CANT_CAST_ON_TAPPED; -- cgit v1.2.3