Files
Paradise/code/tests/test_spell_targeting_test.dm
warriorstar-orion bb60a027bf unit->game tests, /tg/ assertions and allocations (#27646)
* unit->game tests, /tg/ assertions and allocations

* whoopsies

* fix lint
2024-12-21 21:19:33 +00:00

11 lines
344 B
Plaintext

/datum/game_test/spell_targeting/Run()
var/list/bad_spells = list()
for(var/datum/spell/S as anything in typesof(/datum/spell))
if(initial(S.name) == "Spell")
continue // Skip abstract spells
S = new S
if(!S.targeting)
bad_spells += S
if(length(bad_spells))
TEST_FAIL("Spells without targeting found: [bad_spells.Join(", ")]")