From dd720d4bfbfdb4f28dc4c32cecefbcc62fef81f0 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 20 Jul 2014 03:39:03 -0400 Subject: [PATCH] No more magic missiling fellow wizards or your apprentice. --- code/datums/spell.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/datums/spell.dm b/code/datums/spell.dm index 8115b5935a4..82d29382b85 100644 --- a/code/datums/spell.dm +++ b/code/datums/spell.dm @@ -239,6 +239,9 @@ var/list/spells = typesof(/obj/effect/proc_holder/spell) //needed for the badmin switch(max_targets) if(0) //unlimited for(var/mob/living/target in view_or_range(range, user, selection_type)) + for(var/F in user.faction) + if(F in target.faction) + continue targets += target if(1) //single target can be picked if(range < 0)