public override void LevelUp() { if (Level == 10) { return; } base.LevelUp(); basic = new BasicSpell("Missiles", this); intermediate = new IntermediateSpell(Level >= 5 ? "Lightning Storm" : "Lightning Bolt", this); advanced = new AdvancedSpell("Arcane Scream", this); if (Level >= 2) { if (Level == 9) { basic = new AmplifyAttack(basic, 3); basic.UpdateDamage(this); } basic = new Repeater(basic, 2); basic.UpdateDamage(this); } if (Level >= 5) { intermediate = new AreaOfEffect(intermediate); intermediate.UpdateDamage(this); advanced = new Repeater(advanced, 5); advanced.UpdateDamage(this); } }
public override void LevelUp() { if (Level == 10) { return; } base.LevelUp(); basic = new BasicSpell("Missiles", this); intermediate = new IntermediateSpell("Lightning Bolt", this); advanced = new AdvancedSpell("Arcane Scream", this); if (Level >= 2) { basic = new Repeater(basic, 2); basic.UpdateDamage(this); } if (Level >= 5) { advanced = new Repeater(advanced, 5); advanced.UpdateDamage(this); } }