From 142ee99f2e37da0e44dc29358f15e3551954b28d Mon Sep 17 00:00:00 2001 From: Demur Rumed Date: Sun, 15 Sep 2024 15:27:45 +0000 Subject: [PATCH] snowflake: able to freeze shield/weapon --- src/rs/src/skill.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rs/src/skill.rs b/src/rs/src/skill.rs index 849e37d1..023929ce 100644 --- a/src/rs/src/skill.rs +++ b/src/rs/src/skill.rs @@ -4299,8 +4299,9 @@ impl Skill { } Self::rngfreeze => { if ctx.get_kind(t) == Kind::Player { - let mut ids = Vec::with_capacity(16); - for id in ctx.get_player(t).permanents { + let mut ids = Vec::with_capacity(18); + let pl = ctx.get_player(t); + for id in pl.permanents.into_iter().chain(once(pl.weapon)).chain(once(pl.shield)) { if id != 0 && ctx.material(id, None) && !ctx.get(id, Flag::stackable) { ids.push(id); }