//Only for host to call. //Sends back to all Spellcasters with the name of their hero public void ResolveCrisis(string crisisName, string hero) { var evnt = ResolveCrisisEvent.Create(Bolt.GlobalTargets.Everyone); evnt.CrisisName = crisisName; evnt.HeroSpellcaster = hero; evnt.Send(); }
//Everyone recieves this event if they have a hero who countered the crisis. public override void OnEvent(ResolveCrisisEvent evnt) { BoltConsole.Write("ResolveCrisisEvent: " + evnt.CrisisName); CrisisHandler.instance .FinishCrisis(AllCrisisDict.FinishCrisis[evnt.CrisisName], true, evnt.HeroSpellcaster); }