What do I replace this code with?
Code: Select all
gameEffect = "Gain 5 skillpoints", onUseItem = function(self, champion) playSound("level_up") hudPrint(champion:getName().." gained 5 skillpoints.") champion:addSkillPoints(5) return true
** EDIT** Okay, I don't know if this is the most efficient way but I found a champion:damage() command and so I just used that and set damage to some ridiculously high number that would definitely kill the champion. If there is a better way, I'd love to hear it.