Hello, I’m hoping to implement all creature abilities by the end of this month. Actually there are only two left.
One of them is “no obstacle penalty”, which looks quite mysterious. I could barely find any description of this effect.
One source says that ranged damage should be halved when a stack is on the opposite side of castle wall. However, I did not notice such effect so far. Is that only application of this penalty?
Please give me some clues about how it should be implemented.
Last time I checked, Orb of Inhibition and Recanter’s Cloak were handled with same type of parametrized Bonus. As to battlefield influence, this one can probably be added to series of function “canCastThisSpell” in a nice way.
Some effects blocking catsing of certain spells make sense (like "level 0"spells), other do not. This issue is quite open to solutions.
Still, I’ve received very little feedback about last set of creature abilities for 0.86. More testing please!
I think it’s advisable to make some generic, elegant handling of spell-block and only use some bonus source back-tracking in particular situations. I always design it with thought in mind that it will be possible to add artifacts that cause similiar effects.
I could have sworn that in my days of intensive H3 playing I discovered other situation where obstacle penalty applied, but that was many years ago so I could be confusing it with something else.
Anyway, the behaviour is best to be tested, but as I don’t have time these days, I’m just going to assume based on the wiki info that this applies as follows (and if tests will reveal something else, we could adjust it later):
Fort wall adds 50% penalty
It applies only to creatures outside of the walls (and I assume that includes the case of a defending creature which moved out, shooting an attacker which got in)
It cumulates with the range penalty, leading down to only 25% damage when applicable
It does not apply anymore if the trajectory line crosses a section of the wall which was totally destroyed
The last condition is probably the most difficult and debatable, given all the possible combinations of a hex grid. To take that even further, logically having broken down 2 out of the 3 levels of a wall section, should reduce some of the original penalty… but I guess this is really stuff for balancing tweaks in future mods.