Attack()
var/list/hitem = Enemies()
var/mob/go = input(src,"Who do you want to attack?","Attack") in hitem
switch(go)
if("Cancel")
src.Turn()
return
world << "[go]"
var/damage = src.taijutsu+rand(1,5)
go.Damage(src,"Punch",damage,1,1)
Problem description:
When the list pops up, it has, Test Ninja, and Test Ninja's Friend which is what its supposed to have because those are your enemies. But then, no matter who you choose to attack, it always chooses Test Ninja, which makes no sense because the var/mob/go should be set to whoever you choose. So if you choose Test Ninja's Friend, it will still say "Test Ninja" on the world << "[go]" part. It makes no sense, not to mention this is the same exact code in my turn based battle demo and it works perfectly fine in there, everything's the same...
Lummox JR