What I am trying to do is to de-equip and re-equip the weapon to remove the Enchant Poison status when kore is about to attack a certain monster. The code successfully unequiped the weapon but it just wouldnt equip it again.
Code: Select all
my $item = Actor::Item::get("item name", undef, 1);
$item->unequip();
# i even tried to put a delay here, wouldnt work.
$item->equip();