From a1b4bcecfe23aa4d330fcc0f084a586814685e3a Mon Sep 17 00:00:00 2001 From: Robert Fritzen Date: Tue, 17 Oct 2017 16:16:23 -0500 Subject: [PATCH] Fixed a bad damage variable Fixed a bad local variable call in rapier.cs. --- scripts/TWM2/Zombie/ZombieTypes/Rapier.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/TWM2/Zombie/ZombieTypes/Rapier.cs b/scripts/TWM2/Zombie/ZombieTypes/Rapier.cs index 03d2260..567ca7e 100644 --- a/scripts/TWM2/Zombie/ZombieTypes/Rapier.cs +++ b/scripts/TWM2/Zombie/ZombieTypes/Rapier.cs @@ -157,7 +157,7 @@ function RapierZombieArmor::zCarryLoop(%datablock, %zombie, %target, %count) { if(%count == 50) { %chance = getRandom(1, 3); if(%chance == 3) { - %target.damage(0, %tpos, 10.0, $DamageType::Zombie); + %target.damage(0, %target.getPosition(), 10.0, $DamageType::Zombie); } else { %target.isFTD = 1;