mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-spb-lightning' into 'master'
Let Lightning Shield destroy SPB Closes #427 See merge request KartKrew/Kart!933
This commit is contained in:
commit
aa76ba45db
2 changed files with 11 additions and 5 deletions
|
|
@ -632,10 +632,13 @@ static inline BlockItReturn_t PIT_LightningShieldAttack(mobj_t *thing)
|
||||||
return BMIT_CONTINUE;
|
return BMIT_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(thing->flags & MF_SHOOTABLE) || (thing->flags & MF_SCENERY))
|
if (thing->type != MT_SPB)
|
||||||
{
|
{
|
||||||
// Not shootable
|
if (!(thing->flags & MF_SHOOTABLE) || (thing->flags & MF_SCENERY))
|
||||||
return BMIT_CONTINUE;
|
{
|
||||||
|
// Not shootable
|
||||||
|
return BMIT_CONTINUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thing->player && thing->player->spectator)
|
if (thing->player && thing->player->spectator)
|
||||||
|
|
|
||||||
|
|
@ -2058,8 +2058,11 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
||||||
|
|
||||||
if (!force)
|
if (!force)
|
||||||
{
|
{
|
||||||
if (!(target->flags & MF_SHOOTABLE))
|
if (!(target->type == MT_SPB && (damagetype & DMG_TYPEMASK) == DMG_VOLTAGE))
|
||||||
return false; // shouldn't happen...
|
{
|
||||||
|
if (!(target->flags & MF_SHOOTABLE))
|
||||||
|
return false; // shouldn't happen...
|
||||||
|
}
|
||||||
|
|
||||||
if (!(damagetype & DMG_DEATHMASK) && (target->eflags & MFE_PAUSED))
|
if (!(damagetype & DMG_DEATHMASK) && (target->eflags & MFE_PAUSED))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue