hedgewars/uGearsRender.pas
changeset 9685 7d925e82e572
parent 9667 0b27737fc28f
child 9768 08799c901a42
--- a/hedgewars/uGearsRender.pas	Thu Nov 07 23:08:28 2013 -0500
+++ b/hedgewars/uGearsRender.pas	Fri Nov 08 23:11:13 2013 -0500
@@ -948,7 +948,7 @@
         DrawSprite(sprVampiric, sx - 24, sy - 24, 0);
         end;
 
-    if Gear^.Invulnerable then
+    if (Gear^.Hedgehog^.Effects[heInvulnerable] <> 0) then
         begin
         Tint($FF, $FF, $FF, max($40, round($FF * abs(1 - ((RealTicks div 2 + Gear^.uid * 491) mod 1500) / 750))));
         DrawSprite(sprInvulnerable, sx - 24, sy - 24, 0);