diff --git a/Buffs/StatDebuffs/ExoFreeze.cs b/Buffs/StatDebuffs/ExoFreeze.cs index 946691cd38..f6749e3410 100644 --- a/Buffs/StatDebuffs/ExoFreeze.cs +++ b/Buffs/StatDebuffs/ExoFreeze.cs @@ -22,5 +22,10 @@ namespace CalamityMod.Buffs.StatDebuffs npc.DelBuff(buffIndex); buffIndex--; } + + public override void Update(Player player, ref int buffIndex) + { + player.Calamity().eFreeze = true; + } } } diff --git a/Buffs/StatDebuffs/SilvaStun.cs b/Buffs/StatDebuffs/SilvaStun.cs index cbd60ba5f1..e220ebdfce 100644 --- a/Buffs/StatDebuffs/SilvaStun.cs +++ b/Buffs/StatDebuffs/SilvaStun.cs @@ -22,5 +22,10 @@ namespace CalamityMod.Buffs.StatDebuffs npc.DelBuff(buffIndex); buffIndex--; } + + public override void Update(Player player, ref int buffIndex) + { + player.Calamity().silvaStun = true; + } } } diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7a04893ba9..3bb54912ae 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -534,6 +534,8 @@ namespace CalamityMod.CalPlayer public bool clamity = false; public bool sulphurPoison = false; public bool nightwither = false; + public bool eFreeze = false; + public bool silvaStun = false; // Buff public bool trinketOfChiBuff = false; @@ -1281,6 +1283,8 @@ namespace CalamityMod.CalPlayer snowmanNoseless = false; sulphurPoison = false; nightwither = false; + eFreeze = false; + silvaStun = false; revivify = false; trinketOfChiBuff = false; @@ -1513,6 +1517,8 @@ namespace CalamityMod.CalPlayer eclipseMirrorCooldown = false; sulphurPoison = false; nightwither = false; + eFreeze = false; + silvaStun = false; #endregion #region Rogue @@ -8063,7 +8069,7 @@ namespace CalamityMod.CalPlayer fullBright = true; } } - if (gState || cDepth) + if (eFreeze || silvaStun || gState || cDepth) { if (noRogueStealth) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index ca2d2b7171..727e936064 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2257,6 +2257,12 @@ namespace CalamityMod.CalPlayer player.velocity.X = 0f; } + if (modPlayer.eFreeze || modPlayer.silvaStun) + { + player.velocity.Y = 0f; + player.velocity.X = 0f; + } + if (modPlayer.eGravity) { if (player.wingTimeMax < 0)