Seen 5 Hours Ago
Posted 1 Week Ago
914 posts
4 Years
it's not ever going to do anything because what you just did was define a battler method in a move class. The code only know to call the consume code on a battler object, it's never going to do that to a move. Also your code will crash if it was some how called, since half these class variables don't exist on a move object and default to being nil.

You're better off calling the consume code on the attacker in the pbEffect method of the move class. Look at similar function codes, that's very helpful too. 0F4 (Bug Bite, Pluck) does almost what you want, eating the opponent's berry.