*Fixed a bug with attuned_crystalcore - by Iskander

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-19 20:42:22 +01:00
parent f28fb06d71
commit a0d8ee6fdd
@@ -105,7 +105,10 @@ bool ItemUse_item_attuned_crystal_cores(Player *player, Item* _Item, SpellCastTa
{ {
if( targets.getUnitTarget() && targets.getUnitTarget()->GetTypeId()==TYPEID_UNIT && if( targets.getUnitTarget() && targets.getUnitTarget()->GetTypeId()==TYPEID_UNIT &&
targets.getUnitTarget()->GetEntry() == 24972 && targets.getUnitTarget()->isDead() ) targets.getUnitTarget()->GetEntry() == 24972 && targets.getUnitTarget()->isDead() )
{
((Creature*)targets.getUnitTarget())->RemoveCorpse();
return false; return false;
}
player->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW,_Item,NULL); player->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW,_Item,NULL);
return true; return true;