Skip to content

Commit

Permalink
v1.1.22 - Fixed mana cost of spells
Browse files Browse the repository at this point in the history
  • Loading branch information
lologarithm committed Oct 1, 2021
1 parent cec4d78 commit 30ccabc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tbc/spells.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func NewCast(sim *Simulation, sp *Spell) *Cast {

castTime := sp.CastTime

if sp.ID == MagicIDLB12 || sp.ID == MagicIDCL6 {
cast.ManaCost *= 1 - (0.02 * float64(sim.Options.Talents.Convection))
electric := sp.ID == MagicIDLB12 || sp.ID == MagicIDCL6
if electric {
// TODO: Add LightningMaster to talent list (this will never not be selected for an elemental shaman)
castTime -= time.Millisecond * 500 // Talent Lightning Mastery
}
Expand All @@ -114,5 +114,9 @@ func NewCast(sim *Simulation, sp *Spell) *Cast {
}
}

if electric {
cast.ManaCost -= sp.Mana * (0.02 * float64(sim.Options.Talents.Convection)) // reduce mana cost from base cost.
}

return cast
}
2 changes: 1 addition & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ <h4>Standard Elemental Build</h4>
<div id="pullout">
<div class="dtl" style="height:100%;width:100%;padding:10px">
<div id="themetoggle" style="height:20px; bottom: 10px; cursor: pointer;" onclick="toggletheme()">
<text>v1.1.21</text>
<text>v1.1.22</text>
<img id="themebulb" style="height: 20px; width: 20px" src="icons/light-bulb.svg"></img>
</div>
<div style="margin-top:10px">
Expand Down
Binary file modified ui/lib.wasm
Binary file not shown.

0 comments on commit 30ccabc

Please sign in to comment.