[11232] Proper check for loot recipient.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-08 12:56:50 +01:00
parent c73e3cbd67
commit 2469bf946a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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__