Noobinabox / RotS_Live

The current live code of the MUD Return of the Shadow.
https://rotsmud.org/
2 stars 3 forks source link

Reduce Parry to Zero when Shooting #158

Closed Noobinabox closed 1 year ago

Noobinabox commented 1 year ago

When a player is actively shooting we need to reduce their parry down to zero to keep players from parrying while shooting.

kwinsor5 commented 1 year ago

Based on our conversation yesterday it sounded like we shouldn't have to re-calculate the shooter's parry when the shot ends because it's re-calculated on every world event. So the only change i made here was calling SET_CURRENT_PARRY(ch) = 0 in the do_shoot method when the subcmd = 0 (shot starting).

Branch reduce-parry-when-shooting.