aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-03-30 23:39:18 +0200
committerTrazom62 <none@none>2010-03-30 23:39:18 +0200
commit7cc192e97361b705ef8f3e6c82015021842e8c8d (patch)
tree3c565aecfab67c4ea33088d5ad3c837f5f8f56b3 /src
parent83500cb1e4388937a98bba1903de37430415ea16 (diff)
Fix Skinning where there is no loot on creature.
Fixes issue #1174. --HG-- branch : trunk
Diffstat (limited to 'src')
-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();