mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
don't give an on-fire penalty if you're the defender and fleeing (#2988)
This commit is contained in:
@@ -351,7 +351,9 @@ auto UnitValue(
|
||||
kCastleMultiplierBonus * (terrain->modifier().castle().integrity() + 25) / 100.0;
|
||||
}
|
||||
double onFireMultiplier = 1.0;
|
||||
if (terrain->modifier().fire().present()) { onFireMultiplier *= kOnFireMultiplier; }
|
||||
if (terrain->modifier().fire().present() && (isAttacker || attackerWantsCastles)) {
|
||||
onFireMultiplier *= kOnFireMultiplier;
|
||||
}
|
||||
{
|
||||
auto adjacentCoords = HexMapUtils::GetAdjacentCoords(map, location);
|
||||
for (const auto &c : adjacentCoords) {
|
||||
|
||||
Reference in New Issue
Block a user