*More correct check for item attuned_crystal - by darktabbit

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-20 17:51:43 +01:00
parent 50ebd0b35e
commit 013dd9bedb
@@ -104,7 +104,8 @@ bool ItemUse_item_only_for_flight(Player *player, Item* _Item, SpellCastTargets
bool ItemUse_item_attuned_crystal_cores(Player *player, Item* _Item, SpellCastTargets const& targets)
{
if( targets.getUnitTarget() && targets.getUnitTarget()->GetTypeId()==TYPEID_UNIT &&
targets.getUnitTarget()->GetEntry() == 24972 && targets.getUnitTarget()->isDead() )
targets.getUnitTarget()->GetEntry() == 24972 && targets.getUnitTarget()->isDead() &&
(player->GetQuestStatus(11524) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(11525) == QUEST_STATUS_INCOMPLETE) )
{
((Creature*)targets.getUnitTarget())->RemoveCorpse();
return false;