private void SyncedSpells_OnItemAdded(SpellInstance obj) { RunLater(() => { ParentEntity.BeginDebugEvent($"{((SpellDef)obj.Def).____GetDebugShortName()}:{obj.Id}"); foreach (var effect in obj.Cast.Def.Effects) { effect.Def.Begin(obj, true); } }); }
private void SyncedSpells_OnItemAdded(SpellInstance obj) { RunLater(() => { ParentEntity.BeginDebugEvent($"{((SpellDef)obj.Def).____GetDebugShortName()}:{obj.Id}"); foreach (var effect in obj.Cast.Def.Effects) { effect.Def.Begin(obj, true); } }); }