Bug #1242 » 1242_main_patch.diff
ai/default/daiunit.c | ||
---|---|---|
CHECK_UNIT(punit);
|
||
if (can_unit_attack_tile(punit, NULL, ptile)
|
||
&& (pdef = get_defender(nmap, punit, ptile, NULL))) {
|
||
&& (pdef = get_defender(nmap, punit, ptile, NULL))
|
||
/* action enablers might prevent attacking */
|
||
&& is_action_enabled_unit_on_units(nmap, ACTION_ATTACK,
|
||
punit, ptile)) {
|
||
/* See description of kill_desire() about these variables. */
|
||
int attack = unit_att_rating_now(punit);
|
||
int benefit = stack_cost(punit, pdef);
|
- « Previous
- 1
- 2
- 3
- 4
- Next »