Skip to content

Commit 89fff06

Browse files
authored
Don't try and cast spells when dead (dkfans#4811)
fixes dkfans#4780
1 parent 50c5a63 commit 89fff06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/packets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ void process_players_creature_control_packet_control(long idx)
13671367
cctng->move_angle_z = new_vertical;
13681368
ccctrl->roll = new_roll;
13691369
}
1370-
if ((!creature_is_dying(cctng)) && (cctng->active_state != CrSt_CreatureUnconscious))
1370+
if ((thing_is_creature(cctng) && !creature_is_dying(cctng)) && (cctng->active_state != CrSt_CreatureUnconscious))
13711371
{
13721372
TbBool allowed;
13731373
if ((pckt->control_flags & PCtr_LBtnRelease) != 0)

0 commit comments

Comments
 (0)