Slightly change rules for pillaging

This commit is contained in:
Magnus Ulf 2021-03-04 17:15:51 +01:00
parent 0e54edcaf4
commit 89248928c6

View File

@ -253,6 +253,14 @@ public class EngineChunkChange extends Engine
return; return;
} }
// ... and they must actually be claiming ...
if (newFaction.isNone())
{
mplayer.msg("<b>You can't unclaim land belonging to others.");
event.setCancelled(true);
return;
}
// ... the relation may forbid ... // ... the relation may forbid ...
if (oldFaction.getRelationTo(newFaction).isAtLeast(Rel.TRUCE)) if (oldFaction.getRelationTo(newFaction).isAtLeast(Rel.TRUCE))
{ {