*Fixed a bug with attuned_crystalcore - by Iskander
--HG-- branch : trunk
This commit is contained in:
@@ -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() )
|
||||||
return false;
|
{
|
||||||
|
((Creature*)targets.getUnitTarget())->RemoveCorpse();
|
||||||
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user