Centaurs take corrosive damage while shielded.

This commit is contained in:
Mari the Deer 2021-02-14 18:09:00 +01:00
commit cdd7f74ff6
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r272 \cu(Sun 14 Feb 18:00:50 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r272 \cu(2021-02-14 18:00:50)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r273 \cu(Sun 14 Feb 18:09:00 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r273 \cu(2021-02-14 18:09:00)\c-";

View file

@ -917,7 +917,9 @@ Class CorrodeDebuff : Inventory
if ( !Random[Corrode](0,3) && (Owner.Health > 0) ) Owner.Howl();
double maxrad = max(Owner.radius,Owner.height);
int defh = Owner.GetSpawnHealth();
Owner.DamageMobj(self,instigator?instigator:Actor(self),clamp(Amount/8,1,50),'Corroded',DMG_THRUSTLESS);
int flg = DMG_THRUSTLESS;
if ( Owner is 'Centaur' ) flg |= DMG_FOILINVUL; // you're melting, that shield is worthless
Owner.DamageMobj(self,instigator?instigator:Actor(self),clamp(Amount/8,1,50),'Corroded',flg);
bool justdied = (wasalive && (!Owner || (Owner.Health <= 0)));
if ( justdied )
{