1
0
Fork 0

arena: Added "shield failure" display

This commit is contained in:
Michaël Lemaire 2017-05-23 00:16:42 +02:00
parent c4ed162180
commit cbb860b1ec

View file

@ -139,6 +139,9 @@ module TS.SpaceTac.UI {
} else if (event.value.name == "shield") {
this.info_toggle.start(1500, true);
this.info_shield.setValue(event.value.get(), event.value.getMaximal() || 0);
if (event.value.get() == 0) {
this.displayEffect("Shield failure", false);
}
return 0;
} else {
this.displayValueChanged(event);