mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11232] Proper check for loot recipient.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
c73e3cbd67
commit
2469bf946a
2 changed files with 2 additions and 2 deletions
|
|
@ -1309,7 +1309,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
|
||||
// Spell can be used in combat and may affect different target than the expected.
|
||||
// If target is not the expected we need to prevent this effect.
|
||||
if (!pCreature->GetLootRecipientGuid().IsEmpty() || pCreature->isInCombat())
|
||||
if (pCreature->HasLootRecipient() || pCreature->isInCombat())
|
||||
return;
|
||||
|
||||
// set loot recipient, prevent re-use same target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue