public static void Load(IntPtr libraryHandle) { /*BEGIN DELEGATE ASSIGN*/ GetBodySize = Bindings.GetDelegate <GetBodySizeType>(libraryHandle, "GetBodySize"); GetCollisionLayer = Bindings.GetDelegate <GetCollisionLayerType>(libraryHandle, "GetCollisionLayer"); GetCooldown = Bindings.GetDelegate <GetCooldownType>(libraryHandle, "GetCooldown"); GetStateCurrentWave = Bindings.GetDelegate <GetStateCurrentWaveType>(libraryHandle, "GetStateCurrentWave"); GetDamage = Bindings.GetDelegate <GetDamageType>(libraryHandle, "GetDamage"); GetDestination = Bindings.GetDelegate <GetDestinationType>(libraryHandle, "GetDestination"); GetStateElapsedTime = Bindings.GetDelegate <GetStateElapsedTimeType>(libraryHandle, "GetStateElapsedTime"); GetHealth = Bindings.GetDelegate <GetHealthType>(libraryHandle, "GetHealth"); GetLifeTime = Bindings.GetDelegate <GetLifeTimeType>(libraryHandle, "GetLifeTime"); GetMoveSpeed = Bindings.GetDelegate <GetMoveSpeedType>(libraryHandle, "GetMoveSpeed"); GetOrientation = Bindings.GetDelegate <GetOrientationType>(libraryHandle, "GetOrientation"); GetPosition = Bindings.GetDelegate <GetPositionType>(libraryHandle, "GetPosition"); GetRangeDetection = Bindings.GetDelegate <GetRangeDetectionType>(libraryHandle, "GetRangeDetection"); GetWaypointIndex = Bindings.GetDelegate <GetWaypointIndexType>(libraryHandle, "GetWaypointIndex"); /*END DELEGATE ASSIGN*/ // Spawn functions SpawnTower = Bindings.GetDelegate <SpawnTowerType>(libraryHandle, "SpawnTower"); }
public static void Execute() { var target = GetTarget.Target(Blitzcrank.Q.Range, GetDamageType.Get()); if (target == null) { return; } if (Blitzcrank.Q.IsReady() && target.IsValidTarget(Blitzcrank.Q.Range)) { Blitzcrank.Q.Cast(target); } if (Blitzcrank.W.IsReady() && target.IsValidTarget()) { Blitzcrank.W.Cast(); } if (Blitzcrank.R.IsReady() && target.IsValidTarget(Blitzcrank.R.Width)) { Blitzcrank.R.Cast(target); } }