diff --git a/code/game/gamemodes/nations/flagprocs.dm b/code/game/gamemodes/nations/flagprocs.dm
index 496a224028c..f334d67933d 100644
--- a/code/game/gamemodes/nations/flagprocs.dm
+++ b/code/game/gamemodes/nations/flagprocs.dm
@@ -59,9 +59,11 @@
for(var/mob/living/carbon/human/H in player_list)
if(H.mind && H.mind.nation)
if(istype(H.mind.nation.flagpath,N))
- H << "You are no longer the liege of [nation.name]!"
+ world << "Stop being liege message works"
+ H.mind.current << "You are no longer the liege of [nation.name]!"
if(istype(H.mind.nation.flagpath,src))
- H << "You are no longer vassals of [liege.name]!"
+ world << "Stop being vassal message works"
+ H.mind.current << "You are no longer vassals of [liege.name]!"
N.vassals -= nation
liege = null
@@ -75,28 +77,30 @@
spawn(20)
anchored = 1
var/obj/item/flag/nation/F = locate(user.mind.nation.flagpath)
- if(F.loc == F.startloc && Adjacent(F.startloc))
- captured = 1
- liege = F.nation
- F.vassals += nation
- //Announce capture/vassalage here.
- for(var/mob/living/carbon/human/H in player_list)
- if(H.mind && H.mind.nation)
- if(istype(H.mind.nation.flagpath,F))
- H << "You have just vassalized [nation.name]! They must now obey any memebrs of your nation!"
+ if(F.loc != F.startloc) return
+ for(var/obj/item/flag/S in oview(1,F.startloc))
+ if(src == S)
+ captured = 1
+ liege = F.nation
+ F.vassals += nation
+ //Announce capture/vassalage here.
+ for(var/mob/living/carbon/human/H in player_list)
+ if(H.mind && H.mind.nation)
+ if(istype(H.mind.nation.flagpath,F))
+ world << "Liege message works"
+ H.mind.current << "You have just vassalized [nation.name]! They must now obey any memebrs of your nation!"
+ continue
+ else if(istype(H.mind.nation.flagpath,src))
+ world << "Vassalization message works"
+ H.mind.current << "You are now vassals of [liege.name]! You must now obey the orders of any of their members!"
+ continue
+ //Check for Victory
+ for(var/obj/item/flag/nation/N in oview(1,F.startloc))
+ if(N.captured && N.liege == F.nation)
continue
- else if(istype(H.mind.nation.flagpath,src))
- H << "You are now vassals of [liege.name]! You must now obey the orders of any of their members!"
- continue
- //Check for Victory
- for(var/obj/item/flag/nation/N in flag_list)
- if(N == F)
- continue
- if(N.captured && (N.liege == F.nation) && N.Adjacent(F.startloc))
- continue
- else
- return
- ticker.mode.declare_completion(F.nation)
+ else
+ return
+ ticker.mode.declare_completion(F.nation)