mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +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.
|
// 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 target is not the expected we need to prevent this effect.
|
||||||
if (!pCreature->GetLootRecipientGuid().IsEmpty() || pCreature->isInCombat())
|
if (pCreature->HasLootRecipient() || pCreature->isInCombat())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// set loot recipient, prevent re-use same target
|
// set loot recipient, prevent re-use same target
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11231"
|
#define REVISION_NR "11232"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue