Core/Spells: Allow spells with TARGET_FLAG_CORPSE to target players which didn't hit release button yet.

This commit is contained in:
QAston
2011-08-25 06:51:57 +02:00
parent 62d913bb35
commit 188fdb3e4c

View File

@@ -608,8 +608,8 @@ void Spell::InitExplicitTargets(SpellCastTargets const& targets)
// this also makes sure that we correctly send explicit targets to client (removes redundant data)
uint32 neededTargets = m_spellInfo->GetExplicitTargetMask();
// check if spell needs unit target
if (neededTargets & TARGET_FLAG_UNIT_MASK)
// check if spell needs unit target (allow spells with corpse flag to accept unit targets - unit target is sent by client when corpse not yet released)
if (neededTargets & (TARGET_FLAG_UNIT_MASK | TARGET_FLAG_CORPSE_MASK))
{
Unit* target = targets.GetUnitTarget();