Closed RedMisao closed 1 month ago
Partially fixed now (0.9.6.18).
Soul dmg is directly applied to the target's HP, so there's no "X wounds are closing up!" anymore. Soul dmg "reduction" is still applied after dmg is done, so it's not reduction per se.
Soul dmg is supposed to do no dmg, reduced, normal or bonus dmg, mostly defined by the target's species. For example, it deals bonus dmg against ghosts and phantoms (
SOULDMG_EXTRA
) or reduced dmg to nether and zombie enemies (SOUL_XDIMEN
)The trick for doing this is to add an
ondamage_eocs
that runs two EOCs and checks either flag. Then, the_total_damage
context (?) value is set into a custom var which I can used withmath
, and then force the target to cast a spell, dealing themselves the equivalent dmg aspure
. While this is not a solution I like, it works good enoughRegardless of above, using this system creates another problem: how to handle damage reduction. Because the
ondamage_eocs
is running after damage has been done, I'm using another trick to emulate soul dmg on things that should resist it, to instead heal them. This has to be changed as:To solve this, what should be done is (in order of priority):
npc_hp
?)