aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2010-04-01 12:56:52 -0600
committerBrian <runningnak3d@gmail.com>2010-04-01 12:56:52 -0600
commit8ddcc2985c002b4158509ff6cca23e58bd6322d2 (patch)
tree87bc1d26ea631955267d32d9f8dca448389750aa /src/game/Spell.cpp
parent0b38c48ec9cbed0702d9fa3c3708b6b85db36382 (diff)
parentf78b766705104444f695a265bce712d59a22cbb3 (diff)
* Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 248a390c0b8..bad60d69cfd 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -5029,10 +5029,8 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_TARGET_UNSKINNABLE;
Creature* creature = m_targets.getUnitTarget()->ToCreature();
- if ( creature->GetCreatureType() != CREATURE_TYPE_CRITTER && ( !creature->lootForBody || !creature->loot.empty() ) )
- {
+ if (creature->GetCreatureType() != CREATURE_TYPE_CRITTER && !creature->loot.isLooted())
return SPELL_FAILED_TARGET_NOT_LOOTED;
- }
uint32 skill = creature->GetCreatureInfo()->GetRequiredLootSkill();