forked from github/server
fix logic bug
This commit is contained in:
parent
09836ed249
commit
1aca1c6a87
|
@ -677,7 +677,7 @@ static order *plan_dragon(unit * u)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (move && (!ta | chance(0.1))) {
|
if (move && (!ta || chance(0.1))) {
|
||||||
/* dragon gets bored and looks for a different place to go */
|
/* dragon gets bored and looks for a different place to go */
|
||||||
ta = set_new_dragon_target(u, u->region, DRAGON_RANGE);
|
ta = set_new_dragon_target(u, u->region, DRAGON_RANGE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue