mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 10:20:30 +00:00
14 lines
376 B
Plaintext
14 lines
376 B
Plaintext
wfl 'poisoner_attack.fai'
|
|
|
|
def get_best_defense_loc(moves, attacker, enemy)
|
|
choose(filter(map(filter(moves, src=attacker.loc), dst),
|
|
distance_between(self, enemy.loc) = 1),
|
|
defense_on(attacker, self));
|
|
|
|
attack(me.loc, get_best_defense_loc(my_moves.moves, me, target), target.loc, att_weap)
|
|
|
|
|
|
where att_weap = index_of(['poison'],map(me.attacks,specials))
|
|
|
|
wflend
|