Skip to content

Commit

Permalink
asdw152 reported aflatoxin not working in Legacy
Browse files Browse the repository at this point in the history
Septima reported corpse explosion wasn't dealing damage
  • Loading branch information
serprex committed Dec 18, 2020
1 parent d257ab9 commit f277eb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/rs/src/game.rs
Expand Up @@ -1858,7 +1858,11 @@ impl Game {
if !data.evade {
if self.get(id, Stat::aflatoxin) != 0 {
let card = self.get(id, Stat::card);
let cellcode = card::As(card, card::MalignantCell);
let cellcode = if self.cards.set == CardSet::Open {
card::As(card, card::MalignantCell)
} else {
card::v_MalignantCell
};
if card != cellcode {
let owner = self.get_owner(id);
let cell = self.new_thing(cellcode, owner);
Expand Down
2 changes: 1 addition & 1 deletion src/rs/src/skill.rs
Expand Up @@ -1359,7 +1359,7 @@ impl Skill {
owner
},
|ctx, cr| {
ctx.spelldmg(t, dmg);
ctx.spelldmg(cr, dmg);
},
);
ctx.poison(foe, ctx.get(t, Stat::poison) + ctx.get(t, Stat::poisonous));
Expand Down

0 comments on commit f277eb1

Please sign in to comment.