Aka_s_Yasuo.Manager.EventManager.Obj_AI_Base_OnBuffGain C# (CSharp) Method

Obj_AI_Base_OnBuffGain() private static method

private static Obj_AI_Base_OnBuffGain ( Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args ) : void
sender Obj_AI_Base
args Obj_AI_BaseBuffGainEventArgs
return void
        private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }
            switch (args.Buff.DisplayName)
            {
                case "YasuoQ3W":
                    Variables.haveQ3 = true;
                    break;
                case "YasuoDashScalar":
                    Variables.cDash = 1;
                    break;
                case "yasuoeqcombosoundmiss":
                case "YasuoEQComboSoundHit":
                    Core.DelayAction(
                        () =>
                        Player.IssueOrder(
                            GameObjectOrder.AttackTo,
                            (Vector3)Variables._Player.ServerPosition.Extend(Game.CursorPos, Variables._Player.BoundingRadius)), 90);
                    break;
            }
        }