From 577f5c8bb8d591f42c1b64cfa0811562f58c7ae1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 10 Oct 2023 19:22:07 +0100 Subject: [PATCH] Add a moment of invinsibility at the start of a nirik's rage --- .../unicopia/ability/magic/spell/RageAbilitySpell.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RageAbilitySpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RageAbilitySpell.java index cdb079ef..10ca83e2 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RageAbilitySpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/RageAbilitySpell.java @@ -111,6 +111,9 @@ public class RageAbilitySpell extends AbstractSpell { } age++; + source.asEntity().setInvulnerable(age < 25); + + setDirty(); return true; }