#fight */
| 1619 | |
| 1620 | /* #fight */ |
| 1621 | int |
| 1622 | do_fight(void) |
| 1623 | { |
| 1624 | if (svc.context.forcefight) { |
| 1625 | Norep("Double fight prefix, canceled."); |
| 1626 | svc.context.forcefight = 0; |
| 1627 | gd.domove_attempting = 0; |
| 1628 | return ECMD_CANCEL; |
| 1629 | } |
| 1630 | |
| 1631 | svc.context.forcefight = 1; |
| 1632 | gd.domove_attempting |= DOMOVE_WALK; |
| 1633 | return ECMD_OK; |
| 1634 | } |
| 1635 | |
| 1636 | /* #repeat */ |
| 1637 | int |