File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package mage
22
33import (
4- "fmt"
54 "time"
65
76 "github.com/wowsims/tbc/sim/core"
@@ -51,12 +50,10 @@ func (mage *Mage) registerArmorSpells() {
5150 Label : "Mage Armor" ,
5251 Duration : time .Minute * 30 ,
5352 OnGain : func (aura * core.Aura , sim * core.Simulation ) {
54- fmt .Println ("activated" )
5553 mage .PseudoStats .SpiritRegenRateCombat += .3
5654 mage .UpdateManaRegenRates ()
5755 },
5856 OnExpire : func (aura * core.Aura , sim * core.Simulation ) {
59- fmt .Println ("deactivated" )
6057 mage .PseudoStats .SpiritRegenRateCombat -= .3
6158 mage .UpdateManaRegenRates ()
6259 },
@@ -120,4 +117,13 @@ func (mage *Mage) registerArmorSpells() {
120117 frostArmor .Activate (sim )
121118 },
122119 })
120+
121+ switch mage .Options .DefaultMageArmor {
122+ case proto .MageArmor_MageArmorFrostArmor :
123+ core .MakePermanent (frostArmor )
124+ case proto .MageArmor_MageArmorMageArmor :
125+ core .MakePermanent (mageArmor )
126+ case proto .MageArmor_MageArmorMoltenArmor :
127+ core .MakePermanent (moltenArmor )
128+ }
123129}
You can’t perform that action at this time.
0 commit comments