private static void UnworthyInitiateActivated(NPC npc) { npc.StandState = StandState.Kneeling; npc.AddMessage( () => { var nearest = npc.GetNearbyNPC(NPCId.UnworthyInitiateAnchor, 7); if (nearest == null) return; nearest.SpellCast.Trigger(SpellId.ChainedPeasantChest, npc); }); }
private static void NewAvalonSiphonMarkersActivated(NPC npc) { npc.UnitFlags &= ~UnitFlags.SelectableNotAttackable; npc.AddMessage(() => { npc.SpellCast.TriggerSelf(SpellId.VisualFlash); }); }