Files
CHOMPStation2/code/modules/spells/targeted/projectile/dumbfire.dm
CHOMPStation2StaffMirrorBot 65f21fb1d3 [MIRROR] end of file Fix (#10355)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-03-11 17:58:14 +01:00

14 lines
439 B
Plaintext

/spell/targeted/projectile/dumbfire
name = "dumbfire spell"
/spell/targeted/projectile/dumbfire/choose_targets(mob/user = usr)
var/list/targets = list()
var/starting_dir = user.dir //where are we facing at the time of casting?
var/turf/starting_turf = get_turf(user)
var/current_turf = starting_turf
for(var/i = 1; i <= src.range; i++)
current_turf = get_step(current_turf, starting_dir)
targets += current_turf
return targets