git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3482 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d788f223b5
commit
7d2d7ba88d
1 changed files with 2 additions and 3 deletions
|
@ -107,10 +107,9 @@ void(entity targ, entity attacker) ArmorNoise =
|
|||
{
|
||||
local float r;
|
||||
|
||||
if (targ.classname != "player" && targ.classname != "monster")
|
||||
if (attacker.classname != "player" && targ.classname != "monster")
|
||||
return;
|
||||
|
||||
if (attacker.classname != "player" && attacker.classname != "monster")
|
||||
else if (targ.classname != "player" && attacker.classname != "monster")
|
||||
return;
|
||||
|
||||
r = random();
|
||||
|
|
Loading…
Reference in a new issue