Tyrs
King
Kinda an oddity, had the mushroom event spawn on a city tile. No bonus yields like it gives on normal tiles though.
Yeah, well, the promotion doesn't actually make the unit always defend against marksmen, it just makes this much more likely. The fact that Phalanxes ' strength is so much higher than an Archmages, and the fact that Archmages have channeling 1-3 (all of which make them better targets for marksmen), make their failure to defend the archmage reasonable.
I don't think it is a bug, but it among the many things that could use better documentation
i had the mushroom even 3 times in my last game (which was great). the first time worked fine, great ,+2 food for my capital, WOOT!. second time, also happend in my capital, but this time no mushrooms appearedoh well. 3rd time it happened on a peak tile, and the mushrooms DID appear, so my peak now gives 2 food, bonus!
Given that, the next turn, my Chalid hero was attacked by ten assassins in the same stack with the guardsman-phalanxes and defended each and every time, I would question how often "much more likely" is. As I've observed it, it's having absolutely no effect whatsoever.
Hearing this, it sounds quite likely that your Archmages and Chalid have the Guarsdman promotion, too. In that case, it wouldn't help at all, or, at the very least, not much.
The idea of the Guardsman promotion is to have units with Guardsman in a stack with other weak units who don't have it, therefore increasing their chance to defend in relation to those units without the Guardsman promotion.
if (pBestUnit == NULL || (pBestUnit->isBetterDefenderThan(pLoopUnit, pAttacker) && !pBestUnit->isTargetWeakestUnitCounter()))
{
pBestUnit = pLoopUnit;
}
if (pBestUnit == NULL || (pBestUnit->isBetterDefenderThan(pLoopUnit, pAttacker) && !pBestUnit->isTargetWeakestUnitCounter()) [COLOR="Red"]|| (pLoopUnit->isTargetWeakestUnitCounter() && (pLoopUnit->isBetterDefenderThan(pBestUnit, pAttacker) || !pBestUnit->isTargetWeakestUnitCounter()))[/COLOR])
{
pBestUnit = pLoopUnit;
}
I would say that it is both. The AI is pretty stupid in razing the pyre and bringing it's own destruction if it's too early.
If it's razed later (some civs seem more eager to raze it than others though, or it depends on how valuable the tile is), then there is a chance to survive.
This way if the attacker has the Marksman Promotion and any defender in the stack has Guardsman, it will select the strongest of the Guardsman units to defend, but no matter what it WILL select a unit with Guardsman every time.
Kinda an oddity, had the mushroom event spawn on a city tile. No bonus yields like it gives on normal tiles though.