Skip to content

Commit

Permalink
fic script
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily committed Sep 15, 2022
1 parent 6060f28 commit ce5c8fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
19 changes: 0 additions & 19 deletions scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,11 @@ function canAttack(attackDelay) { return lastAaTick + attackDelay < getTime() }
function canMove(windupTime) { return (lastAaTick + windupTime < getTime() || canPlayerMove) }

async function onTick(settings) {
// if (!manager.game.winapi.actions.isPressed(0x05)) return;

// const target = manager.utils.lowestHealthEnemyChampInRange(manager.me.range, { includeClones: true, includeDead: true });
// if (!target) canPlayerMove = true;

// if (target && canAttack(manager.me.attackDelay)) {
// console.log(manager.me.windupTime)
// canPlayerMove = false;
// lastAaTick = getTime();
// await manager.game.issueOrder(target.screenPos, true);
// console.log('Attacking')
// } else if (canMove(manager.me.windupTime)) {
// if (lastWasMove > 0) return lastWasMove--;
// const pos = manager.game.winapi.actions.getMousePos();
// lastWasMove = 2;
// await manager.game.issueOrder(pos, false);
// }

}

function onDraw(getSetting) {
const showDiscord = getSetting('show.discord');
if (showDiscord) ctx.textAt('Join the AyayaLeague discord: https://discord.gg/qYy8Qz4Cr5', 20, 35, 26, 255);
// ctx.textAt(manager.performance || '', 30, 30, 20, 255);
}


Expand Down
4 changes: 2 additions & 2 deletions scripts/orbwalker.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function canMove() { return (canPlayerMove) }

async function onTick(getSettings) {

const orbEnabled = getSettings('orb.enabled');
const orbEnabled = getSetting('orb.enabled');
if (!orbEnabled) return;
const orbKey = getSettings('orb.key');
const orbKey = getSetting('orb.key');
if (!manager.game.winapi.actions.isPressed(orbKey)) return;

const target = manager.utils.lowestHealthEnemyChampInRange(manager.me.range, { includeClones: true, includeDead: true });
Expand Down
1 change: 0 additions & 1 deletion src/offsets.min.js

This file was deleted.

0 comments on commit ce5c8fc

Please sign in to comment.