addHook("PlayerThink", function(p) if p.spawnedfire == nil then p.spawnedfire = 0 end if p.mo.state == S_PLAY_MELEE_LANDING or p.mo.state == S_PLAY_BOUNCE_LANDING or (p.mo.state == S_PLAY_GLIDE_LANDING and p.mo.eflags & MFE_JUSTHITFLOOR) then if (p.powers[pw_shield] & SH_NOSTACK) == SH_ELEMENTAL then if not (p.spawnedfire == 1) then P_ElementalFire(p, true) p.spawnedfire = 1 end end end if (p.mo.state == S_PLAY_GLIDE and P_IsObjectOnGround(p.mo)) or p.mo.state == S_PLAY_SKID then if (p.powers[pw_shield] & SH_NOSTACK) == SH_ELEMENTAL then if not (p.spawnedfire == 1) then P_ElementalFire(p, false) p.spawnedfire = 1 end end end if (p.powers[pw_shield] & SH_NOSTACK) == SH_ELEMENTAL and P_IsObjectOnGround(p.mo) then if p.dashmode > 3*TICRATE then P_ElementalFire(p, false) end end if p.mo.state == S_PLAY_MELEE or p.mo.state == S_PLAY_BOUNCE or p.mo.state == S_PLAY_GLIDE or p.mo.state == S_PLAY_RUN then p.spawnedfire = 0 end end)