public override void Execute(int globalcooldown) { if (DoesKeyExist) { if (!KeyHelper.HasKey(_name)) { _spell = null; } //Load the spell and set the global cooldown if (_spell == null) { _spell = BarMapper.GetSpellByName(_name); _spell.SetCooldown(globalcooldown); KeyHelper.AddKey(_name, "", _spell.Bar.ToString(), _spell.Key.ToString()); } _spell.CastSpell(); } }