Centaurs take corrosive damage while shielded.
This commit is contained in:
parent
33884d385f
commit
cdd7f74ff6
2 changed files with 5 additions and 3 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue