Skip to content

Commit 152651e

Browse files
committed
made auras permanent
1 parent 2e8c986 commit 152651e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

sim/mage/armors.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package mage
22

33
import (
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
}

0 commit comments

Comments
 (0)