Page 1 of 1

Aztec Priest Sacrificial Altar inconsistent in usage

Posted: Fri Feb 25, 2022 11:12 pm
by b2198
Basically, it only works if the unit is visible, when it should probably also work in unprotected garrisons that don't show the unit, like TCs and ruined fortresses, just like almost all other abilities (except for heal and mend, which are hard-coded that way if I'm not mistaken, maybe area effect skills work like that too?).

Image
Image
Image
Image

(just a small observation: I don't know for sure it works for protected garrisons that show the unit, since afaik great flags were the only unit with those properties in the game)

Re: Aztec Priest Sacrificial Altar inconsistent in usage

Posted: Fri Feb 25, 2022 11:33 pm
by Endru1241
Unfortunately those are a limitations of engine.

SYSTEM_SPECIAL_EFFECT_TARGET_AND_AREA just works like that, because it was designed with some sort of magical area spell in mind.
It cannot affect those protected by garrison, unless some very extensive changes were made (look how assassin inside works).
And with any of such - there is no way to tell if final effect would work like desired.

BTW. My plan was to make it an aura, which affects units inside, but unfortunately AURA_EFFECT can only apply limited number of different effects types.
INSTANT, ENCHANTMENT and REPETITIVE_VANISHING if I remember my tests right.

And we need EFFECT_SPELL for proper use.

Re: Aztec Priest Sacrificial Altar inconsistent in usage

Posted: Fri Feb 25, 2022 11:47 pm
by b2198
Yeah, I guessed it would be an engine limitation by the looks of it, just reported in case this wasn't known yet. Thanks for the explanation anyway.