Skip to content

Commit

Permalink
Merge pull request #815 from imring/else
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
srliao authored Aug 19, 2022
2 parents bb15ac9 + 8dd4a97 commit 5394250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/characters/sayu/burst.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *char) createBurstSnapshot() *combat.AttackEvent {
ActorIndex: c.Index,
Abil: "Muji-Muji Daruma",
AttackTag: combat.AttackTagElementalBurst,
ICDTag: combat.ICDTagNone,
ICDTag: combat.ICDTagElementalBurst,
ICDGroup: combat.ICDGroupDefault,
Element: attributes.Anemo,
Durability: 25,
Expand Down
7 changes: 5 additions & 2 deletions pkg/gcs/ast/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,15 @@ func (i *IfStmt) CopyIfStmt() *IfStmt {
if i == nil {
return nil
}
return &IfStmt{
n := &IfStmt{
Pos: i.Pos,
Condition: i.Condition.CopyExpr(),
IfBlock: i.IfBlock.CopyBlock(),
ElseBlock: i.ElseBlock.CopyStmt(),
}
if i.ElseBlock != nil {
n.ElseBlock = i.ElseBlock.CopyStmt()
}
return n
}

func (i *IfStmt) CopyStmt() Stmt {
Expand Down

0 comments on commit 5394250

Please sign in to comment.