mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
agent::attack_dir): Don't process herbs
This commit is contained in:
parent
22b2408ba2
commit
7e994ba763
1 changed files with 1 additions and 1 deletions
2
agent.cc
2
agent.cc
|
@ -72,7 +72,7 @@ agent::attack_dir(int dir_x, int dir_y)
|
|||
return false;
|
||||
|
||||
class tile *t2 = &tile->tile_in_dir(dir_x, dir_y);
|
||||
if (!t2->agent || t2->agent->dead)
|
||||
if (!t2->agent || t2->agent->dead || t2->herb_here())
|
||||
return false;
|
||||
|
||||
class agent *a = t2->agent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue