Also, and I didn’t thought about this myself, cleaving instead of attacking makes only sense if there is more than one enemy next to you. A normal attack is both more powerful and faster than a cleave-attack, but has of course no Area-Damage.
A couple basic things. You are getting nearest enemy outside the loop, so all through the code, you enemy will always be empty because there was no enemy the instant the games started. Similarly you get the flag outside the loop, though for the flag line, your code is wrong. self.flag is nothing, you need self.findFlag().
Your current code should have you always shielding because both enemy and flag are always null.
I have beaten the level! Bug turned out to be me not looking for a second while ogres ganged up on me, silly me. Anyway, I used flags to direct me out of the way when I was low on hit points, because I moved flags up so I checked for flags and went to them first so I kept myself out of the way while my troops beat up everything else. Thanks for all the help, and good luck!
I can only beat this level with flag-guided landmines.
Maybe I’m just not good at coming up with viable infantry tactics
Or having struggled with “Copper Meadows” and only beating it by chance and armor, maybe the shamans are too strong?
I tried optimizing my cleaves, segmenting my moves to be able to engage enemies sooner, but every time there’s a shaman, it just mows me down with those rapid fire blue ball lightnings that go over obstacles too.
I even tried plowing through the melee units to get to it faster, but I can’t selectively target it with findNearestEnemy(), so it’s not really helping other than cleave splash damage.
I guess at this point in the game we don’t really have (or know) enough “sensing” methods for less brute-force approaches.
@Feinty - How? You can’t use a wizard on your first time doing Siege, if you’re not a subscriber. I have Hattori and Omarn as ‘extra’ characters that I can pick, with a non-subscriber run through the first 2 areas. Wizard isn’t unlocked by that point. Wizard (Ms Hushbaum) is unlocked in the forest in the level Arcane Ally, which is a Subscriber Only level.
Also, I think I found the minimum gearcheck for success in Siege of Stronghold, @nick. Hammer, Defense Infantry, Bronze BP, fur hat, leather belt. That’s the minimum gearcheck that allowed me to get through Rich Forager, with no upgrade needed for Siege.
Actually, Wizard is the broader category, whose heroic members include Miss Hushbaum the Librarian, Omarn Brewstone the Potion master, Pender Spellbane the Sorcerer, Nalfar Cryptor the Necromancer, and Usara Master Wizard the Dark Wizard. (Some of these are yet to be unlockable.)