Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto Minion : GEntityList->GetAllMinions(false, true, true))
- {
- if (!Minion->IsDead() && Minion != nullptr && Minion->IsValidTarget() && Minion->IsValidTarget(GEntityList->Player(), Q->Range()))
- {
- int minions = 0;
- if (Is_Inside_Rectangle(GEntityList->Player()->GetPosition(), Enemy->GetPosition(), Minion->GetPosition(), 100 + (Minion->BoundingRadius() * 2)))
- {
- minions++;
- }
- std::string s = std::to_string(minions);
- char const *pchar = s.c_str();
- GGame->PrintChat(pchar);
- if (minions == 1)
- {
- delay = GGame->TickCount() + 500;
- }
- if (delay < GGame->TickCount())
- {
- if (minions == 1)
- {
- if (Smite != nullptr && Smite->IsReady())
- {
- if (Minion != nullptr && !Minion->IsDead() && Minion->GetHealth() <= GDamage->GetSummonerSpellDamage(GEntityList->Player(), Minion, kSummonerSpellSmite) && (Minion->GetPosition() - GEntityList->Player()->GetPosition()).Length() <= 570)
- {
- auto vecBeamStart = GEntityList->Player()->GetPosition().To2D();
- auto flBeamRadius = 100;
- auto endPosition = Enemy->ServerPosition().To2D();
- auto rc = Geometry::Rectangle(vecBeamStart, endPosition, flBeamRadius);
- if (rc.IsInside(Minion))
- {
- if (Smite->CastOnUnit(Minion))
- {
- Vec3 pred;
- GPrediction->GetFutureUnitPosition(Enemy, 0.3f, true, pred);
- if (InSpellRange(Q, pred))
- Q->CastOnPosition(pred);
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement