proc
Metronome() // Incomplete
var/mob/O = src.Owner
var/mob/M = O.Foe
var/obj/card/P = M.Active_Pokemon
if(Energy() >= 3)
call(src,input(usr,"Attacks") in P.Attacks)()
else
O << output("[src.name] requires at least 3 Colourless Energy to use Metronome!")
return
Problem description: Well the idea is to have Clefairy use any Pokemon's attack. As the code stands, it can only copy the procedure itself.
I had considered giving Clefairy a "Metronome Energy" list. But I realized that the extra effects of each attack could be triggered by that.
Right now I think the only way I can get around this issue is by adding an "Or" clause to every attack (which is no problem, but it would be quite the ways to go to get 1 attack to work properly). Is there an easier way to get around this issue?
In simplified terms/clarification
1. Clefairy has an attack that lets it do any attack on the Opponent's card, regardless of cost
2. Clefairy, using this attack, is not allowed to utilize extra effects, it only does base damage
3. My current code doesn't support this.
EDIT: I'm so sorry. I didn't realize I had re-written the code wrong. It's fixed now.