Skip to content

Commit

Permalink
Fix bug with ES weaving CanCast
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyt857 committed Jul 23, 2023
1 parent fefb497 commit 57757ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sim/hunter/explosive_trap.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ func (hunter *Hunter) registerExplosiveTrapSpell(timer *core.Timer) {
ActionID: hunter.ExplosiveTrap.ActionID.WithTag(1),
Flags: core.SpellFlagNoOnCastComplete | core.SpellFlagNoMetrics | core.SpellFlagNoLogs | core.SpellFlagAPL,

ExtraCastCondition: func(sim *core.Simulation, target *core.Unit) bool {
return hunter.ExplosiveTrap.CanCast(sim, target)
},

ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
if sim.CurrentTime < 0 {
hunter.mayMoveAt = sim.CurrentTime
Expand Down

0 comments on commit 57757ee

Please sign in to comment.