Skip to content

Commit

Permalink
snowflake: able to freeze shield/weapon
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Sep 15, 2024
1 parent 3ef4272 commit 142ee99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rs/src/skill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 142ee99

Please sign in to comment.