Skip to content

Commit

Permalink
Fixed Navia's Skill buffs not applying to her shotgun due to timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
RarePossum committed Dec 23, 2023
1 parent 011f953 commit c81a2d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/characters/navia/skill.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ func (c *char) Skill(p map[string]int) (action.Info, error) {
c.SetCDWithDelay(action.ActionSkill, 9*60, skillPressCDStart)
}
shots := 5
if p["shrapnel"] != 0 {
c.shrapnel = int(math.Min(float64(p["shrapnel"]), 6))
}

ai := combat.AttackInfo{
ActorIndex: c.Index,
Abil: "Rosula Shardshot",
Expand All @@ -139,14 +137,17 @@ func (c *char) Skill(p map[string]int) (action.Info, error) {

c.QueueCharTask(
func() {
if p["shrapnel"] != 0 {
c.shrapnel = int(math.Min(float64(p["shrapnel"]), 6))
}
c.Core.Log.NewEvent(fmt.Sprintf("%v crystal shrapnel", c.shrapnel), glog.LogCharacterEvent, c.Index)
shots = 5 + int(math.Min(float64(c.shrapnel), 3))*2

// Calculate buffs based on excess shrapnel
excess := math.Max(float64(c.shrapnel-3), 0)
m := make([]float64, attributes.EndStatType)
c.AddAttackMod(character.AttackMod{
Base: modifier.NewBase("navia-skill-dmgup", travelDelay),
Base: modifier.NewBase("navia-skill-dmgup", travelDelay+1),
Amount: func(atk *combat.AttackEvent, t combat.Target) ([]float64, bool) {
if atk.Info.AttackTag != attacks.AttackTagElementalArt {
return nil, false
Expand Down

0 comments on commit c81a2d2

Please sign in to comment.