You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix bug where PoisonedBehavior damage ignored POISON resistance
- In order to prevent an infinite self-poisoning loop, the damage being dealt was set to DAMAGE_UNRESISTABLE.
- Adding a check for the source of the damage prevents us from restarting poison effects, thus we can safely use DAMAGE_POISON damage type once again.
damage.in.m_damageType = DAMAGE_UNRESISTABLE; //Not poison, as that will infect us again
122
-
damage.in.m_damageFXOverride = DAMAGE_POISON; // but this will ensure that the right effect is played
123
+
damage.in.m_damageType = DAMAGE_POISON; //@bugfix hanfield 01/08/2025 Since we now check for sourceID, this damage will not cause an infinite poison loop
124
+
damage.in.m_damageFXOverride = DAMAGE_POISON; //Not necessary anymore, but can help to make sure proper FX are used, if template is wonky
0 commit comments