Being incapacitated while having the weakened debuff now results in instant death

This commit is contained in:
Mads Boddum
2016-10-19 10:18:57 +02:00
parent 7b64bbb7a2
commit 47bc9d4e9a
3 changed files with 36 additions and 26 deletions
+4 -1
View File
@@ -368,7 +368,10 @@ public final class CorpseService extends Service {
corpse.setTurnScale(1);
corpse.setMovementScale(1);
corpse.setHealth(corpse.getMaxHealth());
new BuffIntent("incapWeaken", corpse, corpse, true).broadcastAfterIntent(new BuffIntent("cloning_sickness", corpse, corpse, false));
BuffIntent cloningSickness = new BuffIntent("cloning_sickness", corpse, corpse, false);
new BuffIntent("incapweaken", corpse, corpse, true).broadcastAfterIntent(cloningSickness);
cloningSickness.broadcast();
}
/**