From 63042cf49a5fdbbc97680ce49e8cbcddbe5f3d82 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 28 Dec 2010 12:16:01 -0600 Subject: [PATCH] You can no longer burn a spy that has been captured. --- lib/Lacuna/RPC/Building/Intelligence.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Lacuna/RPC/Building/Intelligence.pm b/lib/Lacuna/RPC/Building/Intelligence.pm index 4fadfb6e..5b81d41e 100644 --- a/lib/Lacuna/RPC/Building/Intelligence.pm +++ b/lib/Lacuna/RPC/Building/Intelligence.pm @@ -100,6 +100,9 @@ sub burn_spy { if ($spy->task eq 'Waiting On Trade') { confess [1010, "You can't burn a spy involved in a trade. You must wait for the trade to complete."]; } + if ($spy->task eq 'Captured') { + confess [1010, "You can't burn a spy that has been captured. If you did he would have no reason not to tell your enemy all your secrets."]; + } $spy->burn; return { status => $self->format_status($empire, $building->body), -- 2.51.2