From 6ba085e3c0bafc44072fe3df94ff98b6fa16c6e7 Mon Sep 17 00:00:00 2001 From: Jeena Date: Tue, 18 Feb 2014 14:08:48 +0100 Subject: [PATCH] fixed #54 it now gets read if it is under 30 --- app/Game/Client/View/Views/PixiView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Game/Client/View/Views/PixiView.js b/app/Game/Client/View/Views/PixiView.js index 79be315..087a03b 100755 --- a/app/Game/Client/View/Views/PixiView.js +++ b/app/Game/Client/View/Views/PixiView.js @@ -230,7 +230,9 @@ function (Parent, DomController, PIXI, Settings, NotificationCenter) { playerInfo.endFill(); if(options.healthFactor > 0) { - playerInfo.beginFill(0x00FF00); + var color = 0x00FF00; + if(options.healthFactor < 0.30) color = 0xFF0000; + playerInfo.beginFill(color); playerInfo.lineStyle(0, 0x000000); playerInfo.drawRect(borderWidth, borderWidth, width * options.healthFactor, height); playerInfo.endFill();