OnuseItem ?
Posted: Fri Nov 14, 2014 9:56 am
Hi I have created a item that when used should heal the champ of poison. I drink a poison potion use the item and the champ is not cured of poison.
{
class = "UsableItem",
onUseItem = function(self,champion)
playSound("curepoison_1")
champion:setCondition("poison", 0) ---Is this the problem---
hudPrint(champion:getName() .. " Uses the mugwort and poison is cured.")
end
},
}
}
{
class = "UsableItem",
onUseItem = function(self,champion)
playSound("curepoison_1")
champion:setCondition("poison", 0) ---Is this the problem---
hudPrint(champion:getName() .. " Uses the mugwort and poison is cured.")
end
},
}
}