//On cast. public bool OnCast(ModCommon.ModCommon.Spell spell) { if (PlayerData.instance.GetBool("equippedCharm_44")) { HeroController.instance.ResetAirMoves(); } return(true); }
private bool OverwriteSpells(ModCommon.ModCommon.Spell s) { if (s == ModCommon.ModCommon.Spell.Quake && !_floordetect.hasCelingAbove() && _acceptingInput) { _acceptingInput = false; Log("Pling, pa!"); StartCoroutine(Groundpound()); } Log("The following spell was casted " + s); return(false); }