mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Spells: Allow spells with TARGET_FLAG_CORPSE to target players which didn't hit release button yet.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user