When the party is invisible, it seems to make no difference. #110
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It should make the party immune to archery and melee, but not spells.
This is an item logged from the To-Do and was originally reported by (@CelticMinstrel?). If you are familiar with or can recreate this bug, please provide details here.
Just to clarify for anyone less familiar with the game, "invisible" means the Sanctuary spell.
Is this based on the DnD/Pathfinder Sanctuary spell where a monster has to roll for a chance to even be allowed to roll an attack? When I played as a kid and phones hung on walls, I never understood this spell so I never really used it.
Is this related to #153 ?
Pretty sure it was the Sanctuary spell, not Dust of Hiding.
I thought maybe they were both invisibility.
Edit: I don't know how Sanctuary works, or how dust of hiding is supposed to work.
They do both use the same status effect, but the possible bug with Dust of Hiding in #153 was that the status effect is not even applied, while this bug is that the status effect does not work as expected.
Ok, it looks like sanctuary is correctly blocking melee attacks but not ranged.
This code handles the case for melee attacks:
f22f248f4e/src/game/boe.combat.cpp (L2805-L2811)This code should handle it for ranged attacks:
f22f248f4e/src/game/boe.combat.cpp (L3080-L3085)So does that mean it's working just fine?
I don't know how JV intended for the spell to work.
The issue description says:
And actually, neither of these things are true currently. It works more for melee than for archery, but both attack types can still land, and are more likely to the higher the monster's level.
Melee attacks are a D100 vs. hit_chance[level / 2].
Ranged attacks are D100 vs. hit_chance[level].
So ranged attacks hit Invisible characters more often. We could divide the level by 2 for ranged attacks and have them behave more similarly.
One thing's true for sure: it does make a difference. The spell description says that monsters "probably" won't be able to attack your PC--which is not exactly mathematically true, but it definitely doesn't promise full immunity which would be an outright lie.
Waaaaaait a second. With top-level monsters, the number to beat will be 99 even after the level (array index) is halved. which definitely is not fair.
In order to make the spell description's use of "probably" accurate, we'd want to half the hit chance, not the level.