public void CastSpell() { Item spell = hotbar.EquippedItem(); if (spell == null) { GD.Print("SpellCaster.CastSpell: Can't cast a null spell in slot " + hotbar.EquippedSlot()); return; } spell.Use(Uses.A); }