Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.29 KB | None | 0 0
  1. public static float RDamage(AIBaseClient hero)
  2. {
  3. var target = hero as AIHeroClient;
  4. if (target == null)
  5. {
  6. return 0;
  7. }
  8.  
  9. var rLevel = R.Level;
  10.  
  11. var rCastDelay = 3.25f + EnetClient.Ping / 1000f;
  12.  
  13. var tLevel = target.Level();
  14.  
  15. var rDamage = LocalPlayer.Instance.CalculateDamage(target,
  16. DamageType.Magical,
  17. RBaseDamage[rLevel] +
  18. 0.75f * LocalPlayer.Instance.TotalAbilityDamage());
  19.  
  20. if (Components.KillStealMenu.Healbool.Enabled)
  21. {
  22. var healSlot = target.Spellbook.GetSpell(SpellSlot.Summoner1).SpellData.Name == "SummonerHeal"
  23. ? SpellSlot.Summoner1
  24. : target.Spellbook.GetSpell(SpellSlot.Summoner2).SpellData.Name == "SummonerHeal"
  25. ? SpellSlot.Summoner2
  26. : SpellSlot.Unknown;
  27. if (healSlot != SpellSlot.Unknown)
  28. {
  29. if (target.Spellbook.GetSpell(healSlot).CooldownExpires - Game.ClockTime <= rCastDelay)
  30. {
  31. rDamage -= target.HasBuff("grievouswound") &&
  32. target.GetBuff("grievouswound").ExpireTime - Game.ClockTime >= 3f
  33. ? (75f + 15f * tLevel) *
  34. 0.6f
  35. : 75f + 15f * tLevel;
  36. }
  37. }
  38. }
  39.  
  40. if (Components.KillStealMenu.Barrierbool.Enabled)
  41. {
  42. var barrierSlot = target.Spellbook.GetSpell(SpellSlot.Summoner1).SpellData.Name == "SummonerBarrier"
  43. ? SpellSlot.Summoner1
  44. : target.Spellbook.GetSpell(SpellSlot.Summoner2).SpellData.Name == "SummonerBarrier"
  45. ? SpellSlot.Summoner2
  46. : SpellSlot.Unknown;
  47. if (barrierSlot != SpellSlot.Unknown)
  48. {
  49. if (target.Spellbook.GetSpell(barrierSlot).CooldownExpires - Game.ClockTime <=
  50. rCastDelay)
  51. {
  52. rDamage -= 95f + 20f * tLevel;
  53. }
  54. }
  55. }
  56.  
  57. if (Components.KillStealMenu.Hexbool.Enabled)
  58. {
  59. var slotHex = target.GetItem(ItemID.Hexdrinker);
  60. var slotMaw = target.GetItem(ItemID.MawofMalmortius);
  61. var slotPhantom = target.GetItem(ItemID.PhantomDancer);
  62.  
  63. if (slotHex != null && slotHex.IsValid && target.Spellbook.GetSpell(slotHex.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  64. {
  65. rDamage -= Hexdrinker[tLevel];
  66. }
  67.  
  68. if (slotMaw != null && slotMaw.IsValid && target.Spellbook.GetSpell(slotMaw.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  69. {
  70. rDamage -= 350f;
  71. }
  72.  
  73. if (slotPhantom != null && slotPhantom.IsValid && target.Spellbook.GetSpell(slotPhantom.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  74. {
  75. rDamage -= PhantomHp[tLevel];
  76. }
  77. }
  78.  
  79. if (Components.KillStealMenu.Sorakabool.Enabled)
  80. {
  81. var soraka = ObjectCache.EnemyHeroes.Where(s => !s.IsDead && s.CharName == "Soraka");
  82.  
  83. if (soraka == null)
  84. {
  85.  
  86. }
  87. }
  88.  
  89. if (Components.KillStealMenu.SpellReducebool.Enabled)
  90. {
  91. if (target.GetChampion() == Champion.Alistar && !target.HasBuff("FerociousHowl"))
  92. {
  93. var slotR = target.Spellbook.GetSpell(SpellSlot.R);
  94. if (slotR.IsValid && slotR.Level >= 1 && slotR.CooldownExpires - Game.ClockTime <= rCastDelay)
  95. {
  96. rDamage *= 1f - Alistar[slotR.Level];
  97. }
  98. }
  99. if (target.GetChampion() == Champion.Garen && !target.HasBuff("GarenW"))
  100. {
  101. var slotW = target.Spellbook.GetSpell(SpellSlot.W);
  102. if (slotW.IsValid && slotW.Level >= 1 && slotW.CooldownExpires - Game.ClockTime <= rCastDelay)
  103. {
  104. rDamage *= 0.4f;
  105. }
  106. }
  107. if (target.GetChampion() == Champion.MasterYi && !target.HasBuff("Meditate"))
  108. {
  109. var slotW = target.Spellbook.GetSpell(SpellSlot.W);
  110. if (slotW.IsValid && slotW.Level >= 1 && slotW.CooldownExpires - Game.ClockTime <= rCastDelay)
  111. {
  112. rDamage *= 1f - MasterYi[slotW.Level];
  113. }
  114. }
  115. if (target.GetChampion() == Champion.Annie && !target.HasBuff("AnnieE"))
  116. {
  117. var slotE = target.Spellbook.GetSpell(SpellSlot.E);
  118. if (slotE.IsValid && slotE.Level >= 1 && slotE.CooldownExpires - Game.ClockTime <= rCastDelay)
  119. {
  120. rDamage *= 1f - Annie[slotE.Level];
  121. }
  122. }
  123. if (target.GetChampion() == Champion.Galio && !target.HasBuff("GalioW"))
  124. {
  125. var slotW = target.Spellbook.GetSpell(SpellSlot.W);
  126. if (slotW.IsValid && slotW.Level >= 1 && slotW.CooldownExpires - Game.ClockTime <= rCastDelay)
  127. {
  128. rDamage *= 1f - Galio[slotW.Level];
  129. }
  130. }
  131. if (target.GetChampion() == Champion.Warwick && !target.HasBuff("WarwickE"))
  132. {
  133. var slotE = target.Spellbook.GetSpell(SpellSlot.E);
  134. if (slotE.IsValid && slotE.Level >= 1 && slotE.CooldownExpires - Game.ClockTime <= rCastDelay)
  135. {
  136. rDamage *= 1f - Warwick[slotE.Level];
  137. }
  138. }
  139. if (target.GetChampion() == Champion.Gragas && !target.HasBuff("gragaswself"))
  140. {
  141. var slotW = target.Spellbook.GetSpell(SpellSlot.W);
  142. if (slotW.IsValid && slotW.Level >= 1 && slotW.CooldownExpires - Game.ClockTime <= rCastDelay)
  143. {
  144. rDamage *= 1f - Gragas[slotW.Level];
  145. }
  146. }
  147. }
  148.  
  149. if (Components.KillStealMenu.GAbool.Enabled)
  150. {
  151. var slotGA = target.GetItem(ItemID.GuardianAngel);
  152. if (slotGA != null && slotGA.IsValid && target.Spellbook.GetSpell(slotGA.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  153. {
  154. rDamage = 0f;
  155. }
  156. }
  157.  
  158. if (Components.KillStealMenu.Zhonyasbool.Enabled)
  159. {
  160. var slotZh = target.GetItem(ItemID.ZhonyasHourglass);
  161. var slotZhO = target.GetItem(ItemID.ZhonyasHourglassOrnn);
  162. var slotStop = target.GetItem(ItemID.Stopwatch);
  163. var slotStopC = target.GetItem(ItemID.CommencingStopwatch);
  164.  
  165. if (slotZh != null && slotZh.IsValid && target.Spellbook.GetSpell(slotZh.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  166. {
  167. rDamage = 0f;
  168. }
  169.  
  170. if (slotZhO != null && slotZhO.IsValid && target.Spellbook.GetSpell(slotZhO.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  171. {
  172. rDamage = 0f;
  173. }
  174.  
  175. if (slotStop != null && slotStop.IsValid && target.Spellbook.GetSpell(slotStop.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  176. {
  177. rDamage = 0f;
  178. }
  179.  
  180. if (slotStopC != null && slotStopC.IsValid && target.Spellbook.GetSpell(slotStopC.Slot).CooldownExpires - Game.ClockTime <= rCastDelay)
  181. {
  182. rDamage = 0f;
  183. }
  184. }
  185.  
  186. if (Components.KillStealMenu.Revivebool.Enabled)
  187. {
  188. if (target.GetChampion() == Champion.Anivia && target.PassiveCooldownEndTime - Game.ClockTime <= rCastDelay)
  189. {
  190. rDamage = 0f;
  191. }
  192.  
  193. if (target.GetChampion() == Champion.Zac && target.PassiveCooldownEndTime - Game.ClockTime <= rCastDelay)
  194. {
  195. rDamage = 0f;
  196. }
  197. if (target.GetChampion() == Champion.Zilean)
  198. {
  199. var slotR = target.Spellbook.GetSpell(SpellSlot.R);
  200. if (slotR.IsValid && slotR.Level >= 1 && slotR.CooldownExpires - Game.ClockTime <= rCastDelay)
  201. {
  202. rDamage = 0f;
  203. }
  204. }
  205. }
  206.  
  207.  
  208.  
  209.  
  210. return rDamage;
  211. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement