- int number, captured, l;
-
- if ((captured = scene[game].ship[to].file -> captured) < 0)
- captured = to;
- number = die() < 3;
- if (!number && scene[game].ship[from].nationality == scene[game].ship[captured].nationality)
- number = 1;
- if (number){
- for (l=0; l < 10 && scene[game].ship[from].file -> grapples[l].turnfoul; l++);
- if (l < 10){
- Write(FILES + from, 0, 124 + l*4, turn);
- Write(FILES + from, 0, 124 + l*4 + 2, to);
- }
- for (l=0; l < 10 && scene[game].ship[to].file -> grapples[l].turnfoul; l++);
- if (l < 10){
- Write(FILES + to, 0, 124 + l*4, turn);
- Write(FILES + to, 0, 124 + l*4 + 2, from);
- }
- makesignal("grappled with %s (%c%c)", to, from);
- }
+ if (capship(from)->nationality != capship(to)->nationality && die() > 2)
+ return;
+ Write(W_GRAP, from, 0, to->file->index, 0, 0, 0);
+ Write(W_GRAP, to, 0, from->file->index, 0, 0, 0);
+ makesignal(from, "grappled with %s (%c%c)", to);