mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
replaces is_type_in_list
This commit is contained in:
@@ -35,8 +35,12 @@
|
||||
if(do_after(holder, target, 5 SECONDS))
|
||||
qdel(P)
|
||||
var/hasAbsorbed = FALSE
|
||||
var/knownspell = FALSE
|
||||
for(var/spell/targetspell in C.spell_list)
|
||||
if(!is_type_in_list(targetspell, L.spell_list))
|
||||
for(var/spell/holderspell in L.spell_list)
|
||||
if(targetspell.type == holderspell.type)
|
||||
knownspell = TRUE
|
||||
if(!knownspell)
|
||||
to_chat(holder, "<span class='notice'>You asborb the magical energies from your foe and have learned [targetspell.name]!</span>")
|
||||
L.attack_log += text("\[[time_stamp()] <font color='orange'>[L.real_name] ([L.ckey]) absorbed the spell [targetspell.name] from [C.real_name] ([C.ckey]).</font>")
|
||||
C.remove_spell(targetspell)
|
||||
|
||||
Reference in New Issue
Block a user