SERVER: Potentially alleviate an issue where zombies could melee during actions they shouldn't be able to

This commit is contained in:
MikeyRay 2023-03-24 20:06:17 +01:00
parent 723ccf852a
commit eeab4dd4c2

View file

@ -885,6 +885,9 @@ void() zombie_attack =
{
self.velocity = '0 0 0';
if(self.state == 1) // If the zombie is in this state (rising, or something else) they shouldn't be able to attack!
return;
if (self.classname == "wunder" || self.electro_targeted == true)
return;