forked from Maxxxel/GoS-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoS-U Reborn.lua
2867 lines (2632 loc) · 175 KB
/
GoS-U Reborn.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--[[
______ ______ _____ _____ _______ __
.' ___ | .' ____ \ |_ _||_ _| |_ __ \ [ |
/ .' \_| .--. | (___ \_|______ | | | | | |__) | .---. | |.--. .--. _ .--. _ .--.
| | ____ / .'`\ \ _.____`.|______|| ' ' | | __ / / /__\\ | '/'`\ \/ .'`\ \[ `/'`\][ `.-. |
\ `.___] || \__. || \____) | \ \__/ / _| | \ \_| \__., | \__/ || \__. | | | | | | |
`._____.' '.__.' \______.' `.__.' |____| |___|'.__.'[__;.__.' '.__.' [___] [___||__]
Changelog:
v1.2.2
+ Fixed MapPosition callbacks
v1.2.1
+ Fixed icons
v1.2
+ Fixed Jinx's Q usage and added switch to minigun while laneclearing
v1.1.9
+ Removed Ezreal's & Lucian's E gapclosing
+ Minor changes regarding to evade check
v1.1.8
+ Updated compatibility with new Premium Prediction
+ Removed missile data from Sivir E settings
v1.1.7
+ Updated to support new JustEvade
v1.1.6
+ Fixed Tristana's Q usage
v1.1.5
+ Pushed small fix
v1.1.4
+ Fixed BaseUlt toggle switch
v1.1.3
+ Added Twitch
v1.1.2
+ Added Jinx
v1.1.1
+ Fixed BaseUlt
v1.1
+ Updated Kayle and Morgana spell data
v1.0.9
+ Added Tristana
v1.0.8.2
+ Minor changes
v1.0.8.1
+ Fixed Interrupter
v1.0.8
+ Added Under-Turret check in Auto mode
v1.0.7
+ Added KaiSa
v1.0.6
+ Added Lucian
v1.0.5
+ Added Sivir
+ Added R to KogMaw's LaneClear
v1.0.4.1
+ Fixed slots
v1.0.4
+ Added tear stacking for Ezreal
+ Fixed items usage
v1.0.3
+ Added Kog'Maw
+ Fixed Ashe's target selection on attack
v1.0.2
+ Added Ezreal
v1.0.1
+ Added Vayne
+ Added Interrupter to champions
+ Made minor changes
v1.0
+ Initial release
--]]
local DrawCircle = Draw.Circle
local DrawColor = Draw.Color
local DrawLine = Draw.Line
local DrawText = Draw.Text
local ControlCastSpell = Control.CastSpell
local ControlIsKeyDown = Control.IsKeyDown
local ControlKeyUp = Control.KeyUp
local ControlKeyDown = Control.KeyDown
local ControlMouseEvent = Control.mouse_event
local ControlMove = Control.Move
local ControlSetCursorPos = Control.SetCursorPos
local GameCanUseSpell = Game.CanUseSpell
local GameLatency = Game.Latency
local GameTimer = Game.Timer
local GameHeroCount = Game.HeroCount
local GameHero = Game.Hero
local GameMinionCount = Game.MinionCount
local GameMinion = Game.Minion
local GameMissileCount = Game.MissileCount
local GameMissile = Game.Missile
local GameObjectCount = Game.ObjectCount
local GameObject = Game.Object
local GameParticleCount = Game.ParticleCount
local GameParticle = Game.Particle
local GameTurretCount = Game.TurretCount
local GameTurret = Game.Turret
local GameWardCount = Game.WardCount
local GameWard = Game.Ward
local MathAbs = math.abs
local MathAcos = math.acos
local MathAtan = math.atan
local MathAtan2 = math.atan2
local MathCeil = math.ceil
local MathCos = math.cos
local MathDeg = math.deg
local MathFloor = math.floor
local MathHuge = math.huge
local MathMax = math.max
local MathMin = math.min
local MathPi = math.pi
local MathRad = math.rad
local MathRandom = math.random
local MathSin = math.sin
local MathSqrt = math.sqrt
local TableInsert = table.insert
local TableRemove = table.remove
local TableSort = table.sort
local Allies, Enemies, Turrets, Units = {}, {}, {}, {}
local Module = {Awareness = nil, BaseUlt = nil, Champion = nil, TargetSelector = nil, Utility = nil}
local OnDraws = {Awareness = nil, BaseUlt = nil, Champion = nil, TargetSelector = nil}
local OnRecalls = {Awareness = nil, BaseUlt = nil}
local OnTicks = {Champion = nil, Utility = nil}
local BaseUltC = {["Ashe"] = true, ["Draven"] = true, ["Ezreal"] = true, ["Jinx"] = true}
local Champions = {["Ashe"] = true, ["Caitlyn"] = false, ["Corki"] = false, ["Draven"] = false, ["Ezreal"] = true, ["Jhin"] = false, ["Jinx"] = true, ["Kaisa"] = true, ["Kalista"] = false, ["KogMaw"] = true, ["Lucian"] = true, ["MissFortune"] = false, ["Quinn"] = false, ["Sivir"] = true, ["Tristana"] = true, ["Twitch"] = true, ["Varus"] = false, ["Vayne"] = true, ["Xayah"] = false}
local Item_HK = {[ITEM_1] = HK_ITEM_1, [ITEM_2] = HK_ITEM_2, [ITEM_3] = HK_ITEM_3, [ITEM_4] = HK_ITEM_4, [ITEM_5] = HK_ITEM_5, [ITEM_6] = HK_ITEM_6, [ITEM_7] = HK_ITEM_7}
local Version = "1.22"; local LuaVer = "1.2.2"
local VerSite = "https://raw.githubusercontent.com/Ark223/GoS-Scripts/master/GoS-U%20Reborn.version"
local LuaSite = "https://raw.githubusercontent.com/Ark223/GoS-Scripts/master/GoS-U%20Reborn.lua"
local function OnProcessSpell()
for i = 1, #Units do
local unit = Units[i].unit; local last = Units[i].spell; local spell = unit.activeSpell
if spell and last ~= (spell.name .. spell.endTime) and unit.activeSpell.isChanneling then
Units[i].spell = spell.name .. spell.endTime; return unit, spell
end
end
return nil, nil
end
function OnLoad()
require '2DGeometry'
require 'MapPositionGOS'
if FileExist(COMMON_PATH .. "PremiumPrediction.lua") then require "PremiumPrediction" end
Module.Awareness = GoSuAwareness()
if BaseUltC[myHero.charName] then Module.BaseUlt = GoSuBaseUlt() end
Module.Geometry = GoSuGeometry()
Module.Manager = GoSuManager()
Module.TargetSelector = GoSuTargetSelector()
Module.Utility = GoSuUtility()
if Champions[myHero.charName] then _G[myHero.charName]() end
LoadUnits()
AutoUpdate()
end
function LoadUnits()
for i = 1, GameHeroCount() do
local unit = GameHero(i); Units[i] = {unit = unit, spell = nil}
if unit.team ~= myHero.team then TableInsert(Enemies, unit)
elseif unit.team == myHero.team and unit ~= myHero then TableInsert(Allies, unit) end
end
for i = 1, GameTurretCount() do
local turret = GameTurret(i)
if turret and turret.isEnemy then TableInsert(Turrets, turret) end
end
end
function DownloadFile(site, file)
DownloadFileAsync(site, file, function() end)
while not FileExist(file) do end
end
function ReadFile(file)
local txt = io.open(file, "r"); local result = txt:read()
txt:close(); return result
end
function AutoUpdate()
if not FileExist(COMMON_PATH .. "PremiumPrediction.lua") then
DownloadFile("https://github.com/Ark223/GoS-Scripts/blob/master/PremiumPrediction.lua", COMMON_PATH .. "PremiumPrediction.lua")
end
DownloadFile(VerSite, SCRIPT_PATH .. "GoS-U Reborn.version")
if tonumber(ReadFile(SCRIPT_PATH .. "GoS-U Reborn.version")) > tonumber(Version) then
print("GoS-U Reborn: Downloading update...")
DownloadFile(LuaSite, SCRIPT_PATH .. "GoS-U Reborn.lua")
print("GoS-U Reborn: Successfully updated. 2xF6!")
end
end
local CCSpells = {
["AatroxW"] = {charName = "Aatrox", displayName = "Infernal Chains", slot = _W, type = "linear", speed = 1800, range = 825, delay = 0.25, radius = 80, collision = true},
["AhriSeduce"] = {charName = "Ahri", displayName = "Seduce", slot = _E, type = "linear", speed = 1500, range = 975, delay = 0.25, radius = 60, collision = true},
["AkaliR"] = {charName = "Akali", displayName = "Perfect Execution [First]", slot = _R, type = "linear", speed = 1800, range = 525, delay = 0, radius = 65, collision = false},
["Pulverize"] = {charName = "Alistar", displayName = "Pulverize", slot = _Q, type = "circular", speed = MathHuge, range = 0, delay = 0.25, radius = 365, collision = false},
["BandageToss"] = {charName = "Amumu", displayName = "Bandage Toss", slot = _Q, type = "linear", speed = 2000, range = 1100, delay = 0.25, radius = 80, collision = true},
["CurseoftheSadMummy"] = {charName = "Amumu", displayName = "Curse of the Sad Mummy", slot = _R, type = "circular", speed = MathHuge, range = 0, delay = 0.25, radius = 550, collision = false},
["FlashFrostSpell"] = {charName = "Anivia", displayName = "Flash Frost",missileName = "FlashFrostSpell", slot = _Q, type = "linear", speed = 850, range = 1100, delay = 0.25, radius = 110, collision = false},
["EnchantedCrystalArrow"] = {charName = "Ashe", displayName = "Enchanted Crystal Arrow", slot = _R, type = "linear", speed = 1600, range = 25000, delay = 0.25, radius = 130, collision = false},
["AurelionSolQ"] = {charName = "AurelionSol", displayName = "Starsurge", slot = _Q, type = "linear", speed = 850, range = 25000, delay = 0, radius = 110, collision = false},
["AzirR"] = {charName = "Azir", displayName = "Emperor's Divide", slot = _R, type = "linear", speed = 1400, range = 500, delay = 0.3, radius = 250, collision = false},
["BardQ"] = {charName = "Bard", displayName = "Cosmic Binding", slot = _Q, type = "linear", speed = 1500, range = 950, delay = 0.25, radius = 60, collision = true},
["BardR"] = {charName = "Bard", displayName = "Tempered Fate", slot = _R, type = "circular", speed = 2100, range = 3400, delay = 0.5, radius = 350, collision = false},
["RocketGrab"] = {charName = "Blitzcrank", displayName = "Rocket Grab", slot = _Q, type = "linear", speed = 1800, range = 1150, delay = 0.25, radius = 70, collision = true},
["BraumQ"] = {charName = "Braum", displayName = "Winter's Bite", slot = _Q, type = "linear", speed = 1700, range = 1000, delay = 0.25, radius = 70, collision = true},
["BraumR"] = {charName = "Braum", displayName = "Glacial Fissure", slot = _R, type = "linear", speed = 1400, range = 1250, delay = 0.5, radius = 115, collision = false},
["CaitlynYordleTrap"] = {charName = "Caitlyn", displayName = "Yordle Trap", slot = _W, type = "circular", speed = MathHuge, range = 800, delay = 0.25, radius = 75, collision = false},
["CaitlynEntrapment"] = {charName = "Caitlyn", displayName = "Entrapment", slot = _E, type = "linear", speed = 1600, range = 750, delay = 0.15, radius = 70, collision = true},
["CassiopeiaW"] = {charName = "Cassiopeia", displayName = "Miasma", slot = _W, type = "circular", speed = 2500, range = 800, delay = 0.75, radius = 160, collision = false},
["Rupture"] = {charName = "Chogath", displayName = "Rupture", slot = _Q, type = "circular", speed = MathHuge, range = 950, delay = 1.2, radius = 250, collision = false},
["InfectedCleaverMissile"] = {charName = "DrMundo", displayName = "Infected Cleaver", slot = _Q, type = "linear", speed = 2000, range = 975, delay = 0.25, radius = 60, collision = true},
["DravenDoubleShot"] = {charName = "Draven", displayName = "Double Shot", slot = _E, type = "linear", speed = 1600, range = 1050, delay = 0.25, radius = 130, collision = false},
["EkkoQ"] = {charName = "Ekko", displayName = "Timewinder", slot = _Q, type = "linear", speed = 1650, range = 1175, delay = 0.25, radius = 60, collision = false},
["EkkoW"] = {charName = "Ekko", displayName = "Parallel Convergence", slot = _W, type = "circular", speed = MathHuge, range = 1600, delay = 3.35, radius = 400, collision = false},
["EliseHumanE"] = {charName = "Elise", displayName = "Cocoon", slot = _E, type = "linear", speed = 1600, range = 1075, delay = 0.25, radius = 55, collision = true},
["FizzR"] = {charName = "Fizz", displayName = "Chum the Waters", slot = _R, type = "linear", speed = 1300, range = 1300, delay = 0.25, radius = 150, collision = false},
["GalioE"] = {charName = "Galio", displayName = "Justice Punch", slot = _E, type = "linear", speed = 2300, range = 650, delay = 0.4, radius = 160, collision = false},
["GnarQMissile"] = {charName = "Gnar", displayName = "Boomerang Throw", slot = _Q, type = "linear", speed = 2500, range = 1125, delay = 0.25, radius = 55, collision = false},
["GnarBigQMissile"] = {charName = "Gnar", displayName = "Boulder Toss", slot = _Q, type = "linear", speed = 2100, range = 1125, delay = 0.5, radius = 90, collision = true},
["GnarBigW"] = {charName = "Gnar", displayName = "Wallop", slot = _W, type = "linear", speed = MathHuge, range = 575, delay = 0.6, radius = 100, collision = false},
["GnarR"] = {charName = "Gnar", displayName = "GNAR!", slot = _R, type = "circular", speed = MathHuge, range = 0, delay = 0.25, radius = 475, collision = false},
["GragasQ"] = {charName = "Gragas", displayName = "Barrel Roll", slot = _Q, type = "circular", speed = 1000, range = 850, delay = 0.25, radius = 275, collision = false},
["GragasR"] = {charName = "Gragas", displayName = "Explosive Cask", slot = _R, type = "circular", speed = 1800, range = 1000, delay = 0.25, radius = 400, collision = false},
["GravesSmokeGrenade"] = {charName = "Graves", displayName = "Smoke Grenade", slot = _W, type = "circular", speed = 1500, range = 950, delay = 0.15, radius = 250, collision = false},
["HeimerdingerE"] = {charName = "Heimerdinger", displayName = "CH-2 Electron Storm Grenade", slot = _E, type = "circular", speed = 1200, range = 970, delay = 0.25, radius = 250, collision = false},
["HeimerdingerEUlt"] = {charName = "Heimerdinger", displayName = "CH-2 Electron Storm Grenade", slot = _E, type = "circular", speed = 1200, range = 970, delay = 0.25, radius = 250, collision = false},
["IreliaW2"] = {charName = "Irelia", displayName = "Defiant Dance", slot = _W, type = "linear", speed = MathHuge, range = 775, delay = 0.25, radius = 120, collision = false},
["IreliaR"] = {charName = "Irelia", displayName = "Vanguard's Edge", slot = _R, type = "linear", speed = 2000, range = 950, delay = 0.4, radius = 160, collision = false},
["IvernQ"] = {charName = "Ivern", displayName = "Rootcaller", slot = _Q, type = "linear", speed = 1300, range = 1075, delay = 0.25, radius = 80, collision = true},
["JarvanIVDragonStrike"] = {charName = "JarvanIV", displayName = "Dragon Strike", slot = _Q, type = "linear", speed = MathHuge, range = 770, delay = 0.4, radius = 70, collision = false},
["JhinW"] = {charName = "Jhin", displayName = "Deadly Flourish", slot = _W, type = "linear", speed = 5000, range = 2550, delay = 0.75, radius = 40, collision = false},
["JhinE"] = {charName = "Jhin", displayName = "Captive Audience", slot = _E, type = "circular", speed = 1600, range = 750, delay = 0.25, radius = 130, collision = false},
["JinxWMissile"] = {charName = "Jinx", displayName = "Zap!", slot = _W, type = "linear", speed = 3300, range = 1450, delay = 0.6, radius = 60, collision = true},
["KarmaQ"] = {charName = "Karma", displayName = "Inner Flame", slot = _Q, type = "linear", speed = 1700, range = 950, delay = 0.25, radius = 60, collision = true},
["KarmaQMantra"] = {charName = "Karma", displayName = "Inner Flame [Mantra]", slot = _Q, origin = "linear", type = "linear", speed = 1700, range = 950, delay = 0.25, radius = 80, collision = true},
["KayleQ"] = {charName = "Kayle", displayName = "Radiant Blast", slot = _Q, type = "linear", speed = 2000, range = 850, delay = 0.5, radius = 60, collision = false},
["KaynW"] = {charName = "Kayn", displayName = "Blade's Reach", slot = _W, type = "linear", speed = MathHuge, range = 700, delay = 0.55, radius = 90, collision = false},
["KhazixWLong"] = {charName = "Khazix", displayName = "Void Spike [Threeway]", slot = _W, type = "threeway", speed = 1700, range = 1000, delay = 0.25, radius = 70,angle = 23, collision = true},
["KledQ"] = {charName = "Kled", displayName = "Beartrap on a Rope", slot = _Q, type = "linear", speed = 1600, range = 800, delay = 0.25, radius = 45, collision = true},
["KogMawVoidOozeMissile"] = {charName = "KogMaw", displayName = "Void Ooze", slot = _E, type = "linear", speed = 1400, range = 1360, delay = 0.25, radius = 120, collision = false},
["LeblancE"] = {charName = "Leblanc", displayName = "Ethereal Chains [Standard]", slot = _E, type = "linear", speed = 1750, range = 925, delay = 0.25, radius = 55, collision = true},
["LeblancRE"] = {charName = "Leblanc", displayName = "Ethereal Chains [Ultimate]", slot = _E, type = "linear", speed = 1750, range = 925, delay = 0.25, radius = 55, collision = true},
["LeonaZenithBlade"] = {charName = "Leona", displayName = "Zenith Blade", slot = _E, type = "linear", speed = 2000, range = 875, delay = 0.25, radius = 70, collision = false},
["LeonaSolarFlare"] = {charName = "Leona", displayName = "Solar Flare", slot = _R, type = "circular", speed = MathHuge, range = 1200, delay = 0.85, radius = 300, collision = false},
["LissandraQMissile"] = {charName = "Lissandra", displayName = "Ice Shard", slot = _Q, type = "linear", speed = 2200, range = 750, delay = 0.25, radius = 75, collision = false},
["LuluQ"] = {charName = "Lulu", displayName = "Glitterlance", slot = _Q, type = "linear", speed = 1450, range = 925, delay = 0.25, radius = 60, collision = false},
["LuxLightBinding"] = {charName = "Lux", displayName = "Light Binding", slot = _Q, type = "linear", speed = 1200, range = 1175, delay = 0.25, radius = 50, collision = true},
["LuxLightStrikeKugel"] = {charName = "Lux", displayName = "Light Strike Kugel", slot = _E, type = "circular", speed = 1200, range = 1100, delay = 0.25, radius = 300, collision = true},
["Landslide"] = {charName = "Malphite", displayName = "Ground Slam", slot = _E, type = "circular", speed = MathHuge, range = 0, delay = 0.242, radius = 400, collision = false},
["MalzaharQ"] = {charName = "Malzahar", displayName = "Call of the Void", slot = _Q, type = "rectangular", speed = 1600, range = 900, delay = 0.5, radius = 400, radius2 = 100, collision = false},
["MaokaiQ"] = {charName = "Maokai", displayName = "Bramble Smash", slot = _Q, type = "linear", speed = 1600, range = 600, delay = 0.375, radius = 110, collision = false},
["MorganaQ"] = {charName = "Morgana", displayName = "Dark Binding", slot = _Q, type = "linear", speed = 1200, range = 1250, delay = 0.25, radius = 70, collision = true},
["NamiQ"] = {charName = "Nami", displayName = "Aqua Prison", slot = _Q, type = "circular", speed = MathHuge, range = 875, delay = 1, radius = 180, collision = false},
["NamiRMissile"] = {charName = "Nami", displayName = "Tidal Wave", slot = _R, type = "linear", speed = 850, range = 2750, delay = 0.5, radius = 250, collision = false},
["NautilusAnchorDragMissile"] = {charName = "Nautilus", displayName = "Dredge Line", slot = _Q, type = "linear", speed = 2000, range = 925, delay = 0.25, radius = 90, collision = true},
["NeekoQ"] = {charName = "Neeko", displayName = "Blooming Burst", slot = _Q, type = "circular", speed = 1500, range = 800, delay = 0.25, radius = 200, collision = false},
["NeekoE"] = {charName = "Neeko", displayName = "Tangle-Barbs", slot = _E, type = "linear", speed = 1400, range = 1000, delay = 0.25, radius = 65, collision = false},
["NunuR"] = {charName = "Nunu", displayName = "Absolute Zero", slot = _R, type = "circular", speed = MathHuge, range = 0, delay = 3, radius = 650, collision = false},
["OlafAxeThrowCast"] = {charName = "Olaf", displayName = "Undertow", slot = _Q, type = "linear", speed = 1600, range = 1000, delay = 0.25, radius = 90, collision = false},
["OrnnQ"] = {charName = "Ornn", displayName = "Volcanic Rupture", slot = _Q, type = "linear", speed = 1800, range = 800, delay = 0.3, radius = 65, collision = false},
["OrnnE"] = {charName = "Ornn", displayName = "Searing Charge", slot = _E, type = "linear", speed = 1600, range = 800, delay = 0.35, radius = 150, collision = false},
["OrnnRCharge"] = {charName = "Ornn", displayName = "Call of the Forge God", slot = _R, type = "linear", speed = 1650, range = 2500, delay = 0.5, radius = 200, collision = false},
["PoppyQSpell"] = {charName = "Poppy", displayName = "Hammer Shock", slot = _Q, type = "linear", speed = MathHuge, range = 430, delay = 0.332, radius = 100, collision = false},
["PoppyRSpell"] = {charName = "Poppy", displayName = "Keeper's Verdict", slot = _R, type = "linear", speed = 2000, range = 1200, delay = 0.33, radius = 100, collision = false},
["PykeQMelee"] = {charName = "Pyke", displayName = "Bone Skewer [Melee]", slot = _Q, type = "linear", speed = MathHuge, range = 400, delay = 0.25, radius = 70, collision = false},
["PykeQRange"] = {charName = "Pyke", displayName = "Bone Skewer [Range]", slot = _Q, type = "linear", speed = 2000, range = 1100, delay = 0.2, radius = 70, collision = true},
["PykeE"] = {charName = "Pyke", displayName = "Phantom Undertow", slot = _E, type = "linear", speed = 3000, range = 25000, delay = 0, radius = 110, collision = false},
["RakanW"] = {charName = "Rakan", displayName = "Grand Entrance", slot = _W, type = "circular", speed = MathHuge, range = 650, delay = 0.7, radius = 265, collision = false},
["RengarE"] = {charName = "Rengar", displayName = "Bola Strike", slot = _E, type = "linear", speed = 1500, range = 1000, delay = 0.25, radius = 70, collision = true},
["RumbleGrenade"] = {charName = "Rumble", displayName = "Electro Harpoon", slot = _E, type = "linear", speed = 2000, range = 850, delay = 0.25, radius = 60, collision = true},
["SejuaniR"] = {charName = "Sejuani", displayName = "Glacial Prison", slot = _R, type = "linear", speed = 1600, range = 1300, delay = 0.25, radius = 120, collision = false},
["ShyvanaTransformLeap"] = {charName = "Shyvana", displayName = "Transform Leap", slot = _R, type = "linear", speed = 700, range = 850, delay = 0.25, radius = 150, collision = false},
["SionQ"] = {charName = "Sion", displayName = "Decimating Smash", slot = _Q, origin = "", type = "linear", speed = MathHuge, range = 750, delay = 2, radius = 150, collision = false},
["SionE"] = {charName = "Sion", displayName = "Roar of the Slayer", slot = _E, type = "linear", speed = 1800, range = 800, delay = 0.25, radius = 80, collision = false},
["SkarnerFractureMissile"] = {charName = "Skarner", displayName = "Fracture", slot = _E, type = "linear", speed = 1500, range = 1000, delay = 0.25, radius = 70, collision = false},
["SonaR"] = {charName = "Sona", displayName = "Crescendo", slot = _R, type = "linear", speed = 2400, range = 1000, delay = 0.25, radius = 140, collision = false},
["SorakaQ"] = {charName = "Soraka", displayName = "Starcall", slot = _Q, type = "circular", speed = 1150, range = 810, delay = 0.25, radius = 235, collision = false},
["SwainW"] = {charName = "Swain", displayName = "Vision of Empire", slot = _W, type = "circular", speed = MathHuge, range = 3500, delay = 1.5, radius = 300, collision = false},
["SwainE"] = {charName = "Swain", displayName = "Nevermove", slot = _E, type = "linear", speed = 1800, range = 850, delay = 0.25, radius = 85, collision = false},
["TahmKenchQ"] = {charName = "TahmKench", displayName = "Tongue Lash", slot = _Q, type = "linear", speed = 2800, range = 800, delay = 0.25, radius = 70, collision = true},
["TaliyahWVC"] = {charName = "Taliyah", displayName = "Seismic Shove", slot = _W, type = "circular", speed = MathHuge, range = 900, delay = 0.85, radius = 150, collision = false},
["TaliyahR"] = {charName = "Taliyah", displayName = "Weaver's Wall", slot = _R, type = "linear", speed = 1700, range = 3000, delay = 1, radius = 120, collision = false},
["ThreshE"] = {charName = "Thresh", displayName = "Flay", slot = _E, type = "linear", speed = MathHuge, range = 500, delay = 0.389, radius = 110, collision = true},
["TristanaW"] = {charName = "Tristana", displayName = "Rocket Jump", slot = _W, type = "circular", speed = 1100, range = 900, delay = 0.25, radius = 300, collision = false},
["UrgotQ"] = {charName = "Urgot", displayName = "Corrosive Charge", slot = _Q, type = "circular", speed = MathHuge, range = 800, delay = 0.6, radius = 180, collision = false},
["UrgotE"] = {charName = "Urgot", displayName = "Disdain", slot = _E, type = "linear", speed = 1540, range = 475, delay = 0.45, radius = 100, collision = false},
["UrgotR"] = {charName = "Urgot", displayName = "Fear Beyond Death", slot = _R, type = "linear", speed = 3200, range = 1600, delay = 0.4, radius = 80, collision = false},
["VarusE"] = {charName = "Varus", displayName = "Hail of Arrows", slot = _E, type = "linear", speed = 1500, range = 925, delay = 0.242, radius = 260, collision = false},
["VarusR"] = {charName = "Varus", displayName = "Chain of Corruption", slot = _R, type = "linear", speed = 1950, range = 1200, delay = 0.25, radius = 120, collision = false},
["VelkozQ"] = {charName = "Velkoz", displayName = "Plasma Fission", slot = _Q, type = "linear", speed = 1300, range = 1050, delay = 0.25, radius = 50, collision = true},
["VelkozE"] = {charName = "Velkoz", displayName = "Tectonic Disruption", slot = _E, type = "circular", speed = MathHuge, range = 800, delay = 0.8, radius = 185, collision = false},
["ViktorGravitonField"] = {charName = "Viktor", displayName = "Graviton Field", slot = _W, type = "circular", speed = MathHuge, range = 800, delay = 1.75, radius = 270, collision = false},
["WarwickR"] = {charName = "Warwick", displayName = "Infinite Duress", slot = _R, type = "linear", speed = 1800, range = 3000, delay = 0.1, radius = 55, collision = false},
["XerathArcaneBarrage2"] = {charName = "Xerath", displayName = "Arcane Barrage", slot = _W, type = "circular", speed = MathHuge, range = 1000, delay = 0.75, radius = 235, collision = false},
["XerathMageSpear"] = {charName = "Xerath", displayName = "Mage Spear", slot = _E, type = "linear", speed = 1400, range = 1050, delay = 0.2, radius = 60, collision = true},
["XinZhaoW"] = {charName = "XinZhao", displayName = "Wind Becomes Lightning", slot = _W, type = "linear", speed = 5000, range = 900, delay = 0.5, radius = 40, collision = false},
["ZacQ"] = {charName = "Zac", displayName = "Stretching Strikes", slot = _Q, type = "linear", speed = 2800, range = 800, delay = 0.33, radius = 120, collision = false},
["ZiggsW"] = {charName = "Ziggs", displayName = "Satchel Charge", slot = _W, type = "circular", speed = 1750, range = 1000, delay = 0.25, radius = 240, collision = false},
["ZiggsE"] = {charName = "Ziggs", displayName = "Hexplosive Minefield", slot = _E, type = "circular", speed = 1800, range = 900, delay = 0.25, radius = 250, collision = false},
["ZileanQ"] = {charName = "Zilean", displayName = "Time Bomb", slot = _Q, type = "circular", speed = MathHuge, range = 900, delay = 0.8, radius = 150, collision = false},
["ZoeE"] = {charName = "Zoe", displayName = "Sleepy Trouble Bubble", slot = _E, type = "linear", speed = 1700, range = 800, delay = 0.3, radius = 50, collision = true},
["ZyraE"] = {charName = "Zyra", displayName = "Grasping Roots", slot = _E, type = "linear", speed = 1150, range = 1100, delay = 0.25, radius = 70, collision = false},
["ZyraR"] = {charName = "Zyra", displayName = "Stranglethorns", slot = _R, type = "circular", speed = MathHuge, range = 700, delay = 2, radius = 500, collision = false},
["BrandConflagration"] = {charName = "Brand", slot = _R, type = "targeted", displayName = "Conflagration", range = 625,cc = true},
["JarvanIVCataclysm"] = {charName = "JarvanIV", slot = _R, type = "targeted", displayName = "Cataclysm", range = 650},
["JayceThunderingBlow"] = {charName = "Jayce", slot = _E, type = "targeted", displayName = "Thundering Blow", range = 240},
["BlindMonkRKick"] = {charName = "LeeSin", slot = _R, type = "targeted", displayName = "Dragon's Rage", range = 375},
["LissandraR"] = {charName = "Lissandra", slot = _R, type = "targeted", displayName = "Frozen Tomb", range = 550},
["SeismicShard"] = {charName = "Malphite", slot = _Q, type = "targeted", displayName = "Seismic Shard", range = 625,cc = true},
["AlZaharNetherGrasp"] = {charName = "Malzahar", slot = _R, type = "targeted", displayName = "Nether Grasp", range = 700},
["MaokaiW"] = {charName = "Maokai", slot = _W, type = "targeted", displayName = "Twisted Advance", range = 525},
["NautilusR"] = {charName = "Nautilus", slot = _R, type = "targeted", displayName = "Depth Charge", range = 825},
["PoppyE"] = {charName = "Poppy", slot = _E, type = "targeted", displayName = "Heroic Charge", range = 475},
["RyzeW"] = {charName = "Ryze", slot = _W, type = "targeted", displayName = "Rune Prison", range = 615},
["Fling"] = {charName = "Singed", slot = _E, type = "targeted", displayName = "Fling", range = 125},
["SkarnerImpale"] = {charName = "Skarner", slot = _R, type = "targeted", displayName = "Impale", range = 350},
["TahmKenchW"] = {charName = "TahmKench", slot = _W, type = "targeted", displayName = "Devour", range = 250},
["TristanaR"] = {charName = "Tristana", slot = _R, type = "targeted", displayName = "Buster Shot", range = 669}
}
local ChanellingSpells = {
["CaitlynAceintheHole"] = {charName = "Caitlyn", slot = _R, type = "targeted", displayName = "Ace in the Hole", danger = 3},
["Drain"] = {charName = "Fiddlesticks", slot = _W, type = "targeted", displayName = "Drain", danger = 2},
["Crowstorm"] = {charName = "Fiddlesticks", slot = _R, type = "skillshot", displayName = "Crowstorm", danger = 3},
["GalioW"] = {charName = "Galio", slot = _W, type = "skillshot", displayName = "Shield of Durand", danger = 2},
["GalioR"] = {charName = "Galio", slot = _R, type = "skillshot", displayName = "Hero's Entrance", danger = 3},
["GragasW"] = {charName = "Gragas", slot = _W, type = "skillshot", displayName = "Drunken Rage", danger = 1},
["ReapTheWhirlwind"] = {charName = "Janna", slot = _R, type = "skillshot", displayName = "Monsoon", danger = 2},
["KarthusFallenOne"] = {charName = "Karthus", slot = _R, type = "skillshot", displayName = "Requiem", danger = 3},
["KatarinaR"] = {charName = "Katarina", slot = _R, type = "skillshot", displayName = "Death Lotus", danger = 3},
["LucianR"] = {charName = "Lucian", slot = _R, type = "skillshot", displayName = "The Culling", danger = 2},
["AlZaharNetherGrasp"] = {charName = "Malzahar", slot = _R, type = "targeted", displayName = "Nether Grasp", danger = 3},
["Meditate"] = {charName = "MasterYi", slot = _Q, type = "skillshot", displayName = "Meditate", danger = 1},
["MissFortuneBulletTime"] = {charName = "MissFortune", slot = _R, type = "skillshot", displayName = "Bullet Time", danger = 3},
["AbsoluteZero"] = {charName = "Nunu", slot = _R, type = "skillshot", displayName = "Absolute Zero", danger = 3},
["PantheonRFall"] = {charName = "Pantheon", slot = _R, type = "skillshot", displayName = "Grand Skyfall [Fall]", danger = 3},
["PantheonRJump"] = {charName = "Pantheon", slot = _R, type = "skillshot", displayName = "Grand Skyfall [Jump]", danger = 3},
["PykeQ"] = {charName = "Pyke", slot = _Q, type = "skillshot", displayName = "Bone Skewer", danger = 1},
["ShenR"] = {charName = "Shen", slot = _R, type = "skillshot", displayName = "Stand United", danger = 2},
["SionQ"] = {charName = "Sion", slot = _Q, type = "skillshot", displayName = "Decimating Smash", danger = 2},
["Destiny"] = {charName = "TwistedFate", slot = _R, type = "skillshot", displayName = "Destiny", danger = 2},
["VarusQ"] = {charName = "Varus", slot = _Q, type = "skillshot", displayName = "Piercing Arrow", danger = 1},
["VelKozR"] = {charName = "VelKoz", slot = _R, type = "skillshot", displayName = "Life Form Disintegration Ray", danger = 3},
["ViQ"] = {charName = "Vi", slot = _Q, type = "skillshot", displayName = "Vault Breaker", danger = 2},
["XerathLocusOfPower2"] = {charName = "Xerath", slot = _R, type = "skillshot", displayName = "Rite of the Arcane", danger = 3},
["ZacR"] = {charName = "Zac", slot = _R, type = "skillshot", displayName = "Let's Bounce!", danger = 3}
}
local DamageTable = {
["Ashe"] = {
{slot = 1, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({20, 35, 50, 65, 80})[GoSuManager:GetCastLevel(myHero, _W)] + myHero.totalDamage)) end},
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({200, 400, 600})[GoSuManager:GetCastLevel(myHero, _R)] + myHero.ap)) end},
},
["Caitlyn"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({250, 475, 700})[GoSuManager:GetCastLevel(myHero, _R)] + 2 * myHero.bonusDamage)) end},
},
["Corki"] = {
{slot = 0, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({75, 120, 165, 210, 255})[GoSuManager:GetCastLevel(myHero, _Q)] + 0.5 * myHero.bonusDamage + 0.5 * myHero.ap)) end},
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({90, 115, 140})[GoSuManager:GetCastLevel(myHero, _R)] + ({0.15, 0.45, 0.75})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.totalDamage + 0.2 * myHero.ap)) end},
{slot = 3, state = 1, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({180, 230, 280})[GoSuManager:GetCastLevel(myHero, _R)] + ({0.3, 0.9, 1.5})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.totalDamage + 0.4 * myHero.ap)) end},
},
["Draven"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({175, 275, 375})[GoSuManager:GetCastLevel(myHero, _R)] + 1.1 * myHero.bonusDamage)) end},
{slot = 3, state = 1, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({350, 550, 750})[GoSuManager:GetCastLevel(myHero, _R)] + 2.2 * myHero.bonusDamage)) end},
},
["Ezreal"] = {
{slot = 0, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({15, 40, 65, 90, 115})[GoSuManager:GetCastLevel(myHero, _Q)] + 1.1 * myHero.totalDamage + 0.3 * myHero.ap)) end},
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({175, 250, 325})[GoSuManager:GetCastLevel(myHero, _R)] + myHero.bonusDamage + 0.9 * myHero.ap)) end},
},
["Jinx"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({250, 350, 450})[GoSuManager:GetCastLevel(myHero, _R)] + 1.5 * myHero.bonusDamage + ({0.25, 0.3, 0.35})[GoSuManager:GetCastLevel(myHero, _R)] * target.maxHealth)) end},
{slot = 3, state = 1, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({25, 35, 45})[GoSuManager:GetCastLevel(myHero, _R)] + 0.15 * myHero.bonusDamage + ({0.25, 0.3, 0.35})[GoSuManager:GetCastLevel(myHero, _R)] * target.maxHealth)) end},
},
["Kaisa"] = {
{slot = 1, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({20, 45, 70, 95, 120})[GoSuManager:GetCastLevel(myHero, _W)] + 1.5 * myHero.totalDamage + 0.6 * myHero.ap)) end},
},
["Kalista"] = {
{slot = 2, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, GoSuManager:GotBuff(target, "kalistaexpungemarker") > 0 and ((({20, 30, 40, 50, 60})[GoSuManager:GetCastLevel(myHero, _E)] + 0.6 * myHero.bonusDamage) + ((GoSuManager:GotBuff(target, "kalistaexpungemarker") - 1) * (({10, 14, 19, 25, 32})[GoSuManager:GetCastLevel(myHero, _E)] + ({0.2, 0.2375, 0.275, 0.3125, 0.35})[GoSuManager:GetCastLevel(myHero, _E)] * myHero.totalDamage)))) end},
},
["KogMaw"] = {
{slot = 0, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({80, 130, 180, 230, 280})[GoSuManager:GetCastLevel(myHero, _Q)] + 0.5 * myHero.ap)) end},
{slot = 3, state = 0, damage = function(target) local base = ({100, 140, 180})[GoSuManager:GetCastLevel(myHero, _R)] + 0.65 * myHero.bonusDamage + 0.25 * myHero.ap; local multiplyer = MathFloor(100 - (target.health * 100 / target.maxHealth)); return GoSuManager:CalcMagicalDamage(myHero, target, multiplyer > 60 and base * 2 or base * (1 + (multiplyer * 0.00833))) end},
},
["Lucian"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({400, 875, 1500})[GoSuManager:GetCastLevel(myHero, _R)] + ({5, 6.25, 7.5})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.totalDamage + ({2, 2.5, 3})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.ap)) end},
},
["MissFortune"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({9, 10.5, 12})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.totalDamage + ({2.4, 2.8, 3.2})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.ap)) end},
{slot = 3, state = 1, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({10.8, 12.6, 14.4})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.totalDamage + ({2.88, 3.36, 3.84})[GoSuManager:GetCastLevel(myHero, _R)] * myHero.ap)) end},
},
["Tristana"] = {
{slot = 3, state = 0, damage = function(target) return GoSuManager:CalcMagicalDamage(myHero, target, (({300, 400, 500})[GoSuManager:GetCastLevel(myHero, _R)] + myHero.ap)) end},
},
["Vayne"] = {
{slot = 2, state = 0, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({50, 85, 120, 155, 190})[GoSuManager:GetCastLevel(myHero, _E)] + 0.5 * myHero.bonusDamage)) end},
{slot = 2, state = 1, damage = function(target) return GoSuManager:CalcPhysicalDamage(myHero, target, (({100, 170, 240, 310, 380})[GoSuManager:GetCastLevel(myHero, _E)] + myHero.bonusDamage)) end},
},
}
local SpellData = {
["Ashe"] = {
[1] = {speed = 2000, range = 1200, delay = 0.25, radius = 20, collision = {}, type = "linear"},
[3] = {speed = 1600, range = 12500, delay = 0.25, radius = 130, collision = {}, type = "linear"},
},
["Caitlyn"] = {
[0] = {speed = 2200, range = 1250, delay = 0.625, radius = 90, collision = {}, type = "linear"},
[1] = {speed = MathHuge, range = 800, delay = 0.25, radius = 75, collision = {}, type = "linear"},
[2] = {speed = 1600, range = 750, delay = 0.15, radius = 70, collision = {"minion"}, type = "linear"},
},
["Corki"] = {
[0] = {speed = 1000, range = 825, delay = 0.25, radius = 250, collision = {}, type = "circular"},
[2] = {range = 600},
[3] = {speed = 2000, range = 1300, delay = 0.175, radius = 40, collision = {"minion"}, type = "linear"},
},
["Draven"] = {
[2] = {speed = 1600, range = 1050, delay = 0.25, radius = 130, collision = {}, type = "linear"},
[3] = {speed = 2000, range = 12500, delay = 0.25, radius = 160, collision = {}, type = "linear"},
},
["Ezreal"] = {
[0] = {speed = 2000, range = 1150, delay = 0.25, radius = 60, collision = {"minion"}, type = "linear"},
[1] = {speed = 2000, range = 1150, delay = 0.25, radius = 60, collision = {}, type = "linear"},
[2] = {range = 475, radius = 750},
[3] = {speed = 2000, range = 12500, delay = 1, radius = 160, collision = {}, type = "linear"},
},
["Jhin"] = {
[0] = {range = 550},
[1] = {speed = 5000, range = 2550, delay = 0.75, radius = 40, collision = {}, type = "linear"},
[2] = {speed = 1600, range = 750, delay = 0.25, radius = 130, collision = {}, type = "circular"},
[3] = {speed = 5000, range = 3500, delay = 0.25, radius = 80, collision = {}, type = "linear"},
},
["Jinx"] = {
[1] = {speed = 3300, range = 1450, delay = 0.5, radius = 60, collision = {"minion"}, type = "linear"},
[2] = {speed = 1750, range = 900, delay = 0, radius = 120, collision = {}, type = "circular"},
[3] = {speed = 1700, range = 12500, delay = 0.6, radius = 140, collision = {}, type = "linear"},
},
["Kaisa"] = {
[0] = {range = 600},
[1] = {speed = 1750, range = 3000, delay = 0.4, radius = 100, collision = {"minion"}, type = "linear"},
},
["Kalista"] = {
[0] = {speed = 2400, range = 1150, delay = 0.25, radius = 40, collision = {"minion"}, type = "linear"},
[1] = {range = 1000},
[3] = {range = 1200},
},
["KogMaw"] = {
[0] = {speed = 1650, range = 1175, delay = 0.25, radius = 70, collision = {"minion"}, type = "linear"},
[2] = {speed = 1400, range = 1360, delay = 0.25, radius = 120, collision = {}, type = "linear"},
[3] = {speed = MathHuge, range = 1300, delay = 1.1, radius = 200, collision = {}, type = "circular"},
},
["Lucian"] = {
[0] = {speed = MathHuge, range = 900, range2 = 500, delay = 0.35, radius = 65, collision = {}, type = "linear"},
[1] = {speed = 1600, range = 900, delay = 0.25, radius = 40, collision = {"minion"}, type = "linear"},
[2] = {range = 425},
[3] = {speed = 2800, range = 1200, delay = 0, radius = 110, collision = {"minion"}, type = "linear"},
},
["MissFortune"] = {
[2] = {speed = MathHuge, range = 1000, delay = 0.25, radius = 350, collision = {}, type = "conic"},
[3] = {speed = 2000, range = 1400, delay = 0.25, radius = 100, angle = 34, collision = {}, type = "conic"},
},
["Sivir"] = {
[0] = {speed = 1350, range = 1250, delay = 0.25, radius = 90, collision = {}, type = "linear"},
},
["Tristana"] = {
[1] = {speed = 1100, range = 900, delay = 0.25, radius = 300, collision = {}, type = "circular"},
[2] = {range = 525},
[3] = {range = 525},
},
["Twitch"] = {
[1] = {speed = 1400, range = 950, delay = 0.25, radius = 300, collision = {}, type = "circular"},
[2] = {range = 1200},
},
["Vayne"] = {
[0] = {range = 300},
[2] = {speed = 2000, range = 1, range2 = 550, delay = 0.25, radius = 65, collision = {}, type = "linear"},
},
["Varus"] = {
[0] = {speed = 1900, range = 1525, delay = 0, radius = 70, collision = {}, type = "linear"},
[2] = {speed = 1500, range = 925, delay = 0.242, radius = 260, collision = {}, type = "circular"},
[3] = {speed = 1950, range = 1200, delay = 0.25, radius = 120, collision = {}, type = "linear"},
},
--["Xayah"] = {
--},
}
--[[
┌─┐┌─┐┌─┐┌┬┐┌─┐┌┬┐┬─┐┬ ┬
│ ┬├┤ │ ││││├┤ │ ├┬┘└┬┘
└─┘└─┘└─┘┴ ┴└─┘ ┴ ┴└─ ┴
--]]
class "GoSuGeometry"
function GoSuGeometry:__init()
end
function GoSuGeometry:CalculateCollisionTime(startPos, endPos, unitPos, startTime, speed, delay, origin)
local pos = startPos:Extended(endPos, speed * (GameTimer() - delay - startTime))
return self:GetDistance(unitPos, pos) / speed
end
function GoSuGeometry:CalculateEndPos(startPos, placementPos, unitPos, range, radius, collision, type)
local range = range or 3000; local endPos = startPos:Extended(placementPos, range)
if type == "circular" or type == "rectangular" then
if range > 0 then if self:GetDistance(unitPos, placementPos) < range then endPos = placementPos end
else endPos = unitPos end
elseif collision then
for i = 1, GameMinionCount() do
local minion = GameMinion(i)
if minion and minion.team == myHero.team and minion.alive and self:GetDistance(minion.pos, startPos) < range then
local col = self:VectorPointProjectionOnLineSegment(startPos, placementPos, minion.pos)
if col and self:GetDistance(col, minion.pos) < (radius + minion.boundingRadius / 2) then
range = self:GetDistance(startPos, col); endPos = startPos:Extended(placementPos, range); break
end
end
end
end
return endPos, range
end
function GoSuGeometry:CircleCircleIntersection(c1, c2, r1, r2)
local d = self:GetDistance(c1, c2); local a = (r1 * r1 - r2 * r2 + d * d) / (2 * d); local h = MathSqrt(r1 * r1 - a * a)
local dir = Vector(c2 - c1):Normalized(); local pa = Vector(c1) + a * dir
local s1 = pa + h * dir:Perpendicular(); local s2 = pa - h * dir:Perpendicular()
return s1, s2
end
function GoSuGeometry:CutUnitsRange(units, range)
local units = units
for i = 1, #units do
local unit = units[i]
if unit and self:GetDistance(myHero.pos, unit.pos) > range then TableRemove(units, i) end
end
return units
end
function GoSuGeometry:GetBestCircularAOEPos(units, radius, expected)
local BestPos = nil; local MostHit = 0
for i = 1, #units do
local unit = units[i]; local MostHit = 0
for j = 1, #units do
local target = units[j]
if self:GetDistance(target.pos, unit.pos) <= radius then MostHit = MostHit + 1 end
end
BestPos = unit.pos
if MostHit >= expected then return BestPos, MostHit end
end
return nil, 0
end
function GoSuGeometry:GetBestLinearAOEPos(units, range, radius)
local BestPos = Vector(0, 0, 0); local MostHit = 0
for i = 0, 1 do
for j = 1, #units do
local unit = units[j]; local endPos = i == 0 and myHero.pos:Extended(unit.pos, range) or BestPos
local pointSegment, pointLine, isOnSegment = self:VectorPointProjectionOnLineSegment(myHero.pos, endPos, unit.pos)
if isOnSegment and self:GetDistanceSqr(pointSegment, unit.pos) < (radius + unit.boundingRadius) ^ 2 then
MostHit = MostHit + 1; if i == 0 then BestPos = BestPos + endPos end
end
end
if i == 0 then BestPos = Vector(BestPos.x / MostHit, 0, BestPos.z / MostHit); MostHit = 0 end
end
return BestPos, MostHit
end
function GoSuGeometry:GetDistance(pos1, pos2)
return MathSqrt(self:GetDistanceSqr(pos1, pos2))
end
function GoSuGeometry:GetDistanceSqr(pos1, pos2)
local pos2 = pos2 or myHero.pos
local dx = pos1.x - pos2.x
local dz = (pos1.z or pos1.y) - (pos2.z or pos2.y)
return dx * dx + dz * dz
end
function GoSuGeometry:IsInRange(pos1, pos2, range)
local dx = pos1.x - pos2.x; local dz = pos1.z - pos2.z
return dx * dx + dz * dz <= range * range
end
function GoSuGeometry:RotateVector2D(startPos, endPos, theta)
local dx = endPos.x - startPos.x; local dy = endPos.y - startPos.y
local nx = dx * MathCos(theta) - dy * MathSin(theta); local ny = dx * MathSin(theta) + dy * MathCos(theta)
nx = nx + startPos.x; ny = ny + startPos.y
return Vector(nx, endPos.y, ny)
end
function GoSuGeometry:VectorIntersection(a1, b1, a2, b2)
local x1, y1, x2, y2, x3, y3, x4, y4 = a1.x, a1.z or a1.y, b1.x, b1.z or b1.y, a2.x, a2.z or a2.y, b2.x, b2.z or b2.y
local r, s, u, v, k, l = x1 * y2 - y1 * x2, x3 * y4 - y3 * x4, x3 - x4, x1 - x2, y3 - y4, y1 - y2
local px, py, divisor = r * u - v * s, r * k - l * s, v * k - l * u
return divisor ~= 0 and Vector(px / divisor, py / divisor)
end
function GoSuGeometry:VectorPointProjectionOnLineSegment(v1, v2, v)
local cx, cy, ax, ay, bx, by = v.x, v.z, v1.x, v1.z, v2.x, v2.z
local rL = ((cx - ax) * (bx - ax) + (cy - ay) * (by - ay)) / ((bx - ax) ^ 2 + (by - ay) ^ 2)
local pointLine = { x = ax + rL * (bx - ax), y = ay + rL * (by - ay) }
local rS = rL < 0 and 0 or (rL > 1 and 1 or rL)
local isOnSegment = rS == rL
local pointSegment = isOnSegment and pointLine or { x = ax + rS * (bx - ax), y = ay + rS * (by - ay) }
return pointSegment, pointLine, isOnSegment
end
--[[
┌┬┐┌─┐┌┐┌┌─┐┌─┐┌─┐┬─┐
│││├─┤│││├─┤│ ┬├┤ ├┬┘
┴ ┴┴ ┴┘└┘┴ ┴└─┘└─┘┴└─
--]]
class "GoSuManager"
function GoSuManager:__init()
end
function GoSuManager:CalcMagicalDamage(source, target, damage)
local mr = target.magicResist
local value = 100 / (100 + (mr * source.magicPenPercent) - source.magicPen)
if mr < 0 then value = 2 - 100 / (100 - mr)
elseif (mr * source.magicPenPercent) - source.magicPen < 0 then value = 1 end
return MathMax(0, MathFloor(value * damage))
end
function GoSuManager:CalcPhysicalDamage(source, target, damage)
local ArmorPenPercent = source.armorPenPercent
local ArmorPenFlat = source.armorPen * (0.6 + (0.4 * (target.levelData.lvl / 18)))
local BonusArmorPen = source.bonusArmorPenPercent
if source.type == Obj_AI_Minion then ArmorPenPercent = 1; ArmorPenFlat = 0; BonusArmorPen = 1
elseif source.type == Obj_AI_Turret then
ArmorPenFlat = 0; BonusArmorPen = 1
if source.charName:find("3") or source.charName:find("4") then ArmorPenPercent = 0.25
else ArmorPenPercent = 0.7 end
if target.type == Obj_AI_Minion then damage = damage * 1.25
if target.charName:find("MinionSiege") then damage = damage * 0.7 end
return damage
end
end
local armor = target.armor; local bonusArmor = target.bonusArmor
local value = 100 / (100 + (armor * ArmorPenPercent) - (bonusArmor * (1 - BonusArmorPen)) - ArmorPenFlat)
if armor < 0 then value = 2 - 100 / (100 - armor)
elseif (armor * ArmorPenPercent) - (bonusArmor * (1 - BonusArmorPen)) - ArmorPenFlat < 0 then value = 1 end
return MathMax(0, MathFloor(value * damage))
end
function GoSuManager:GetAllyHeroes()
return Allies
end
function GoSuManager:GetCastLevel(unit, slot)
return unit:GetSpellData(slot).level == 0 and 1 or unit:GetSpellData(slot).level
end
function GoSuManager:GetCastRange(unit, spell)
local range = unit:GetSpellData(spell).range
if range and range > 0 then return range end
end
function GoSuManager:GetDamage(target, spell, state)
local state = state or 0
if spell == 0 or spell == 1 or spell == 2 or spell == 3 then
if DamageTable[myHero.charName] then
for i, spells in pairs(DamageTable[myHero.charName]) do
if spells.slot == spell then
if spells.state == state then
return spells.damage(target)
end
end
end
end
end
end
function GoSuManager:GetEnemyHeroes()
return Enemies
end
function GoSuManager:GetHeroesAround(pos, range, mode)
local range = range or MathHuge; local t = {}; local n = 0
for i = 1, (mode == "allies" and #Allies or #Enemies) do
local unit = mode == "allies" and Allies[i] or Enemies[i]
if unit and unit.alive and unit.valid and GoSuGeometry:GetDistance(pos, unit.pos) <= range then
TableInsert(t, unit); n = n + 1
end
end
return t, n
end
function GoSuManager:GetHeroByHandle(handle)
for i = 1, #Enemies do
local unit = Enemies[i]
if unit.handle == handle then return unit end
end
end
function GoSuManager:GetItemSlot(unit, id)
for i = ITEM_1, ITEM_7 do
if unit:GetItemData(i).itemID == id then return i end
end
return 0
end
function GoSuManager:GetMinionsAround(pos, range, mode)
local range = range or MathHuge; local t = {}; local n = 0
for i = 1, GameMinionCount() do
local minion = GameMinion(i)
if minion and minion.alive and minion.valid and GoSuGeometry:GetDistance(pos, minion.pos) <= range then
if mode == "allies" and minion.isAlly or minion.isEnemy then
TableInsert(t, minion); n = n + 1
end
end
end
return t, n
end
function GoSuManager:GetOrbwalkerMode()
if _G.SDK then
if _G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_COMBO] then return "Combo"
elseif _G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_HARASS] then return "Harass"
elseif _G.SDK.Orbwalker.Modes[_G.SDK.ORBWALKER_MODE_LANECLEAR] then return "Clear" end
else
return GOS.GetMode()
end
return ""
end
function GoSuManager:GetPercentHP(unit)
return 100 * unit.health / unit.maxHealth
end
function GoSuManager:GetPercentMana(unit)
return 100 * unit.mana / unit.maxMana
end
function GoSuManager:GetSpellCooldown(unit, spell)
return MathCeil(unit:GetSpellData(spell).currentCd)
end
function GoSuManager:GotBuff(unit, buffname)
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and buff.name == buffname and buff.count > 0 then return buff.count end
end
return 0
end
function GoSuManager:IsImmobile(unit)
if unit.ms == 0 then return true end
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and (buff.type == 5 or buff.type == 11 or buff.type == 18 or buff.type == 22 or buff.type == 24 or buff.type == 28 or buff.type == 29 or buff.name == "recall") and buff.count > 0 then return true end
end
return false
end
function GoSuManager:IsReady(spell)
return GameCanUseSpell(spell) == 0
end
function GoSuManager:IsUnderTurret(pos)
for i = 1, #Turrets do
local turret = Turrets[i]
if turret and turret.valid and turret.health > 0 and GoSuGeometry:GetDistance(pos, turret.pos) <= 900 then
return true
end
end
return false
end
function GoSuManager:IsSlowed(unit)
for i = 0, unit.buffCount do
local buff = unit:GetBuff(i)
if buff and buff.type == 10 and buff.count > 0 then return true end
end
return false
end
function GoSuManager:ValidTarget(target, range)
local range = range or MathHuge
return target and target.valid and target.visible and target.health > 0 and GoSuGeometry:GetDistance(myHero.pos, target.pos) < range
end
--[[
┌─┐┬ ┬┌─┐┬─┐┌─┐┌┐┌┌─┐┌─┐┌─┐
├─┤│││├─┤├┬┘├┤ │││├┤ └─┐└─┐
┴ ┴└┴┘┴ ┴┴└─└─┘┘└┘└─┘└─┘└─┘
--]]
class "GoSuAwareness"
function GoSuAwareness:__init()
self.AwarenessMenu = MenuElement({type = MENU, id = "Awareness", name = "[GoS-U] Awareness"})
self.AwarenessMenu:MenuElement({id = "DrawJng", name = "Draw Jungler Info", value = true})
self.AwarenessMenu:MenuElement({id = "DrawEnAA", name = "Draw Enemy AA Range", value = true})
self.AwarenessMenu:MenuElement({id = "EnAARng", name = "AA Range Color", color = DrawColor(64, 192, 192, 192)})
self.AwarenessMenu:MenuElement({id = "DrawEnRng", name = "Draw Enemy Spell Ranges", value = true})
self.AwarenessMenu:MenuElement({id = "EnQRng", name = "Q Range Color", color = DrawColor(64, 0, 250, 154)})
self.AwarenessMenu:MenuElement({id = "EnWRng", name = "W Range Color", color = DrawColor(64, 218, 112, 214)})
self.AwarenessMenu:MenuElement({id = "EnERng", name = "E Range Color", color = DrawColor(64, 255, 140, 0)})
self.AwarenessMenu:MenuElement({id = "EnRRng", name = "R Range Color", color = DrawColor(64, 220, 20, 60)})
self.AwarenessMenu:MenuElement({id = "DrawAA", name = "Draw AA's Left", value = true})
self.AwarenessMenu:MenuElement({id = "CDs", name = "Show Cooldowns", value = true})
self.AwarenessMenu:MenuElement({id = "Recall", name = "Track Recalls", value = true})
OnRecalls.Awareness = function(unit, recall) self:ProcessRecall(unit, recall) end
OnDraws.Awareness = function() self:Draw() end
end
function GoSuAwareness:ProcessRecall(unit, recall)
if self.AwarenessMenu.Recall:Value() then
if unit.team ~= myHero.team then
if recall.isStart then print(unit.charName.." started recalling at " ..MathCeil(unit.health).. "HP")
elseif recall.isFinish then print(unit.charName.." successfully recalled!")
else print(unit.charName.." canceled recalling!") end
end
end
end
function GoSuAwareness:Draw()
for i, enemy in pairs(GoSuManager:GetEnemyHeroes()) do
if GoSuManager:ValidTarget(enemy, 3000) then
if self.AwarenessMenu.DrawEnAA:Value() then
DrawCircle(enemy.pos, enemy.range, 1, self.AwarenessMenu.EnAARng:Value())
end
if self.AwarenessMenu.DrawEnRng:Value() then
if GoSuManager:GetCastRange(enemy, _Q) then DrawCircle(enemy.pos, GoSuManager:GetCastRange(enemy, _Q), 1, self.AwarenessMenu.EnQRng:Value()) end
if GoSuManager:GetCastRange(enemy, _W) then DrawCircle(enemy.pos, GoSuManager:GetCastRange(enemy, _W), 1, self.AwarenessMenu.EnWRng:Value()) end
if GoSuManager:GetCastRange(enemy, _E) then DrawCircle(enemy.pos, GoSuManager:GetCastRange(enemy, _E), 1, self.AwarenessMenu.EnERng:Value()) end
if GoSuManager:GetCastRange(enemy, _R) then DrawCircle(enemy.pos, GoSuManager:GetCastRange(enemy, _R), 1, self.AwarenessMenu.EnRRng:Value()) end
end
end
if GoSuManager:ValidTarget(enemy) then
if self.AwarenessMenu.CDs:Value() then
if GoSuManager:GetSpellCooldown(enemy, _Q) ~= 0 then DrawText("Q", 15, enemy.pos2D.x-85, enemy.pos2D.y+10, DrawColor(0xFFFF0000)); DrawText(GoSuManager:GetSpellCooldown(enemy, _Q), 15, enemy.pos2D.x-85, enemy.pos2D.y+25, DrawColor(0xFFFFA500))
else DrawText("Q", 15, enemy.pos2D.x-85, enemy.pos2D.y+10, DrawColor(0xFF00FF00)) end
if GoSuManager:GetSpellCooldown(enemy, _W) ~= 0 then DrawText("W", 15, enemy.pos2D.x-53, enemy.pos2D.y+10, DrawColor(0xFFFF0000)); DrawText(GoSuManager:GetSpellCooldown(enemy, _W), 15, enemy.pos2D.x-53, enemy.pos2D.y+25, DrawColor(0xFFFFA500))
else DrawText("W", 15, enemy.pos2D.x-53, enemy.pos2D.y+10, DrawColor(0xFF00FF00)) end
if GoSuManager:GetSpellCooldown(enemy, _E) ~= 0 then DrawText("E", 15, enemy.pos2D.x-17, enemy.pos2D.y+10, DrawColor(0xFFFF0000)); DrawText(GoSuManager:GetSpellCooldown(enemy, _E), 15, enemy.pos2D.x-17, enemy.pos2D.y+25, DrawColor(0xFFFFA500))
else DrawText("E", 15, enemy.pos2D.x-17, enemy.pos2D.y+10, DrawColor(0xFF00FF00)) end
if GoSuManager:GetSpellCooldown(enemy, _R) ~= 0 then DrawText("R", 15, enemy.pos2D.x+15, enemy.pos2D.y+10, DrawColor(0xFFFF0000)); DrawText(GoSuManager:GetSpellCooldown(enemy, _R), 15, enemy.pos2D.x+15, enemy.pos2D.y+25, DrawColor(0xFFFFA500))
else DrawText("R", 15, enemy.pos2D.x+15, enemy.pos2D.y+10, DrawColor(0xFF00FF00)) end
if GoSuManager:GetSpellCooldown(enemy, SUMMONER_1) ~= 0 then DrawText("SUM1", 15, enemy.pos2D.x-73, enemy.pos2D.y+40, DrawColor(0xFFFF0000))
else DrawText("SUM1", 15, enemy.pos2D.x-73, enemy.pos2D.y+40, DrawColor(0xFF00FF00)) end
if GoSuManager:GetSpellCooldown(enemy, SUMMONER_2) ~= 0 then DrawText("SUM2", 15, enemy.pos2D.x-19, enemy.pos2D.y+40, DrawColor(0xFFFF0000))
else DrawText("SUM2", 15, enemy.pos2D.x-19, enemy.pos2D.y+40, DrawColor(0xFF00FF00)) end
end
if self.AwarenessMenu.DrawAA:Value() then
local AALeft = enemy.health / GoSuManager:CalcPhysicalDamage(myHero, enemy, myHero.totalDamage)
Draw.Text("AA Left: "..tostring(math.ceil(AALeft)), 15, enemy.pos2D.x+40, enemy.pos2D.y+10, Draw.Color(0xFF00BFFF))
end
end
if self.AwarenessMenu.DrawJng:Value() then
if enemy:GetSpellData(SUMMONER_1).name:lower():find("smite") and SUMMONER_1 or (enemy:GetSpellData(SUMMONER_2).name:lower():find("smite") and SUMMONER_2) then
if enemy.alive then
if GoSuManager:ValidTarget(enemy) then
if GoSuGeometry:GetDistance(myHero.pos, enemy.pos) > 3000 then DrawText("Jungler: Visible", 17, myHero.pos2D.x-45, myHero.pos2D.y+10, DrawColor(0xFF32CD32))
else DrawText("Jungler: Near", 17, myHero.pos2D.x-43, myHero.pos2D.y+10, DrawColor(0xFFFF0000)) end
else
DrawText("Jungler: Invisible", 17, myHero.pos2D.x-55, myHero.pos2D.y+10, DrawColor(0xFFFFD700))
end
else
DrawText("Jungler: Dead", 17, myHero.pos2D.x-45, myHero.pos2D.y+10, DrawColor(0xFF32CD32))
end
end
end
end
end
--[[
┌┐ ┌─┐┌─┐┌─┐┬ ┬┬ ┌┬┐
├┴┐├─┤└─┐├┤ │ ││ │
└─┘┴ ┴└─┘└─┘└─┘┴─┘┴
--]]
class "GoSuBaseUlt"
function GoSuBaseUlt:__init()
self.EnemyBase = nil; self.RecallData = {}; self.RData = SpellData[myHero.charName][3]
for i = 1, GameObjectCount() do
local base = GameObject(i)
if base.isEnemy and base.type == Obj_AI_SpawnPoint then self.EnemyBase = base break end
end
for i = 1, GameHeroCount() do
local unit = GameHero(i)
if unit.isEnemy then self.RecallData[unit.charName] = {startTime = 0, duration = 0, missing = 0, isRecalling = false} end
end
self.BaseUltMenu = MenuElement({type = MENU, id = "BaseUlt", name = "[GoS-U] BaseUlt"})
self.BaseUltMenu:MenuElement({id = "Enable", name = "Enable BaseUlt", value = true})
--self.BaseUltMenu:MenuElement({id = "Check", name = "Check Collision", value = myHero.charName == "Ashe" or myHero.charName == "Jinx"})
OnRecalls.BaseUlt = function(unit, recall) self:ProcessRecall(unit, recall) end
OnDraws.BaseUlt = function() self:Tick() end
end
function GoSuBaseUlt:Tick()
if self.BaseUltMenu.Enable:Value() then
if GoSuManager:IsReady(_R) then
for i, enemy in pairs(GoSuManager:GetEnemyHeroes()) do
local recall = self.RecallData[enemy.charName]
if recall.isRecalling then
local FirstStage = enemy.health <= GoSuManager:GetDamage(enemy, 3, 0)
if FirstStage then DrawText("Possible BaseUlt!", 35, myHero.pos2D.x-85, myHero.pos2D.y+20, DrawColor(192, 220, 20, 60)) end
local RecallTime = recall.startTime + recall.duration - GameTimer()
local HitTime = self:CalculateTravelTime()
if (HitTime - RecallTime) > 0 then
local PredictedHealth = enemy.health + enemy.hpRegen * HitTime
if not enemy.visible then PredictedHealth = PredictedHealth + enemy.hpRegen * HitTime end
if PredictedHealth + enemy.maxHealth * 0.021 <= GoSuManager:GetDamage(enemy, 3, 0) then
local BasePos = myHero.pos:Extended(self.EnemyBase.pos, 1000)
ControlCastSpell(HK_R, BasePos)
end
end
end
end
end
end
end
function GoSuBaseUlt:ProcessRecall(unit, recall)
if self.BaseUltMenu.Enable:Value() then
if unit.isAlly then return end
local recallData = self.RecallData[unit.charName]
if recall.isStart then recallData.startTime = GameTimer(); recallData.duration = recall.totalTime / 1000; recallData.isRecalling = true
else recallData.isRecalling = false end
end
end
function GoSuBaseUlt:CalculateTravelTime()
local distance = GoSuGeometry:GetDistance(myHero.pos, self.EnemyBase.pos); local delay = self.RData.delay + 0.05
local speed = myHero.charName == "Jinx" and distance > 1350 and (2295000 + (distance - 1350) * 2200) / distance or self.RData.speed
return (distance / speed + delay)
end
--[[
┬ ┬┌┬┐┬┬ ┬┌┬┐┬ ┬
│ │ │ ││ │ │ └┬┘
└─┘ ┴ ┴┴─┘┴ ┴ ┴
--]]
class "GoSuUtility"
function GoSuUtility:__init()
self.MSIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/0/0a/Mercurial_Scimitar_item.png"
self.QSIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/f/f9/Quicksilver_Sash_item.png"
self.BCIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/4/44/Bilgewater_Cutlass_item.png"
self.BOTRKIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/2/2f/Blade_of_the_Ruined_King_item.png"
self.HGIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/6/64/Hextech_Gunblade_item.png"
self.HealIcon = "https://vignette.wikia.nocookie.net/leagueoflegends/images/6/6e/Heal.png"
self.UtilityMenu = MenuElement({type = MENU, id = "Utility", name = "[GoS-U] Utility"})
self.UtilityMenu:MenuElement({id = "Items", name = "Items", type = MENU})
self.UtilityMenu.Items:MenuElement({id = "Defensive", name = "Defensive Items", type = MENU})
self.UtilityMenu.Items.Defensive:MenuElement({id = "UseMS", name = "Use Mercurial Scimitar", value = true, leftIcon = self.MSIcon})
self.UtilityMenu.Items.Defensive:MenuElement({id = "UseQS", name = "Use Quicksilver Sash", value = true, leftIcon = self.QSIcon})
self.UtilityMenu.Items:MenuElement({id = "Offensive", name = "Offensive Items", type = MENU})
self.UtilityMenu.Items.Offensive:MenuElement({id = "UseBC", name = "Use Bilgewater Cutlass", value = true, leftIcon = self.BCIcon})
self.UtilityMenu.Items.Offensive:MenuElement({id = "UseBOTRK", name = "Use BOTRK", value = true, leftIcon = self.BOTRKIcon})
self.UtilityMenu.Items.Offensive:MenuElement({id = "UseHG", name = "Use Hextech Gunblade", value = true, leftIcon = self.HGIcon})
self.UtilityMenu.Items.Offensive:MenuElement({id = "HE", name = "Enemy %HP To Use Items", value = 75, min = 0, max = 100, step = 5})
self.UtilityMenu:MenuElement({id = "SS", name = "Summoner Spells", type = MENU})
self.UtilityMenu.SS:MenuElement({id = "UseHeal", name = "Use Heal", value = true, leftIcon = self.HealIcon})
self.UtilityMenu.SS:MenuElement({id = "UseSave", name = "Save Ally Using Heal", value = true, leftIcon = self.HealIcon})
self.UtilityMenu.SS:MenuElement({id = "HealMe", name = "HP [%] To Use Heal: MyHero", value = 15, min = 0, max = 100, step = 5})
self.UtilityMenu.SS:MenuElement({id = "HealAlly", name = "HP [%] To Use Heal: Ally", value = 15, min = 0, max = 100, step = 5})
OnTicks.Utility = function() self:Tick() end
end
function GoSuUtility:Tick()
if self.UtilityMenu.SS.UseHeal:Value() then
if myHero.alive and myHero.health > 0 and GoSuManager:GetPercentHP(myHero) < self.UtilityMenu.SS.HealMe:Value() then
if myHero:GetSpellData(SUMMONER_1).name == "SummonerHeal" and GoSuManager:IsReady(SUMMONER_1) then
ControlCastSpell(HK_SUMMONER_1)
elseif myHero:GetSpellData(SUMMONER_2).name == "SummonerHeal" and GoSuManager:IsReady(SUMMONER_2) then
ControlCastSpell(HK_SUMMONER_2)
end
end