Open taltamir opened 4 years ago
Mafia bug, we choose whether to attack or use spells based on the monster's physical resistance, which (if it's indeed immune to physical damage) is set incorrectly:
> ash $monster[angry ghost].physical_resistance
Returned: 0
> ash $monster[chalkdust wraith].physical_resistance
Returned: 100
It also clearly isn't immune to physical damage, or it would be taking exactly 1 damage from each of those hits.
The combat script could use some work against scalers though, it struggles on non-myst classes because it doesn't use spells often enough. That or I guess the more likely problem is it not using weaksauce aggressively enough, because attacking scalers shouldn't be an issue in that case...
It also clearly isn't immune to physical damage, or it would be taking exactly 1 damage from each of those hits.
Huh, you are right... actually doh, I think it was attacking with the lightsabre, which deals prismatic damage. and the instances of single digit damage is because it was simply missing. Not because ghosts are immune to physical damage (they are, its just not the issue in this case).
My bad there.
The combat script could use some work against scalers though, it struggles on non-myst classes because it doesn't use spells often enough. That or I guess the more likely problem is it not using weaksauce aggressively enough, because attacking scalers shouldn't be an issue in that case...
Weaksauce on scalers would be a great opening move. So good idea there. Actually this is basically issue #203
Context
Expected/Desired Behavior
When accordion thief encounters Angry Ghost (from I voted sticker, from voting booth IOTM) they should cast spells at it to kill it instead of trying to hit it with their weapon. (which is ineffective because ghosts are immune to physical damage)
Current Behavior
Hits it a few times and then gives up.
Failure Logs