Permit ships to assault the sector they're in
Ships still have to be in a sea sector to assault an adjacent sector.
This commit is contained in:
parent
4e962406ff
commit
b707e2cca8
1 changed files with 1 additions and 0 deletions
|
@ -461,6 +461,7 @@ att_abort(int combat_mode, struct combat *off, struct combat *def)
|
||||||
if (att_get_combat(off, 0) < 0)
|
if (att_get_combat(off, 0) < 0)
|
||||||
return abort_attack();
|
return abort_attack();
|
||||||
if (off->type == EF_SHIP &&
|
if (off->type == EF_SHIP &&
|
||||||
|
!(off->x == def->x && off->y == def->y) &&
|
||||||
(!getsect(off->x, off->y, §) ||
|
(!getsect(off->x, off->y, §) ||
|
||||||
sect.sct_type != SCT_WATER)) {
|
sect.sct_type != SCT_WATER)) {
|
||||||
pr("%s can not %s from that far inland!\n",
|
pr("%s can not %s from that far inland!\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue