//END MAIN BATTLE FLOW-------------------------------------------------------------------// //Handles a spellcast (by calling the castmanager) and clears callback's buffer if necessary public void handleSpellCast(string spell, TrackTyping callback) { uiManager.updateUI(); // Update Tab buffer UI if (frenzyCastActive) { SpellData s = castManager.isValidSpell(spell); if (s != null) { frenzySpells.Add(s); AudioPlayer.main.playSFX("sfx_enter"); } else { AudioPlayer.main.playSFX("sfx_enter_bad"); } trackTyping.clearBuffer(); } else { castManager.attackCurrent(spell, callback); } }