Skip to content

Commit

Permalink
uwu 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlaubb committed Oct 26, 2024
1 parent ecbe2d0 commit 99c9280
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions ac_BP/src/Core/Combat/Auto Clicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { MinecraftEntityTypes } from "../../node_modules/@minecraft/vanilla-data
import { tps } from "../../Assets/Public.js";
import { registerModule, configi } from "../Modules.js";
import { DisableTags } from "../../Data/EnumData.js";
import { Action } from "../../Assets/Action.js";

const clickData: Map<string, number[]> = new Map<string, number[]>();

Expand Down Expand Up @@ -58,10 +59,7 @@ function antiAutoClickerB(config: configi, player: Player) {
// player.sendMessage(currentIntervalLevel.toFixed(2));
if (currentIntervalLevel < config.antiAutoClicker.minInterval) {
if (now - data.lastflag < 9000) {
player.addTag(DisableTags.pvp);
system.runTimeout(() => {
player.removeTag(DisableTags.pvp);
}, config.antiAutoClicker.timeout);
Action.timeout(player, config.antiAutoClicker.timeout);
}
data.lastflag = now;
}
Expand Down
6 changes: 2 additions & 4 deletions ac_BP/src/Core/Combat/Kill Aura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { isSpikeLagging } from "../../Assets/Public.js";
import { Type } from "../../Assets/Util.js";
import flag from "../../Assets/flag.js";
import MathUtil from "../../Assets/MathUtil.js";
import { Action } from "../../Assets/Action.js";

/**
* @author ravriv & jasonlaubb & RaMiGamerDev
Expand Down Expand Up @@ -121,10 +122,7 @@ function doubleEvent(config: configi, player: Player, hitEntity: Entity, onFirst
}

if (flagged) {
player.addTag(DisableTags.pvp);
system.runTimeout(() => {
player.removeTag(DisableTags.pvp);
}, config.antiKillAura.timeout);
Action.timeout(player, config.antiKillAura.timeout);
}

killauradata.set(player.id, data);
Expand Down
2 changes: 2 additions & 0 deletions ac_BP/src/Core/Combat/Reach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { MinecraftEntityTypes } from "../../node_modules/@minecraft/vanilla-data
import { configi, registerModule } from "../Modules.js";
import flag from "../../Assets/flag.js";
import MathUtil from "../../Assets/MathUtil";
import { Action } from "../../Assets/Action.js";

const reachData: Map<string, number> = new Map<string, number>();

Expand Down Expand Up @@ -61,6 +62,7 @@ function antiReach(hurtEntity: Player, damagingEntity: Player, config: configi)
system.runTimeout(() => {
reachData.delete(damagingEntity.id);
}, 80);
Action.timeout(damagingEntity, 15);
if (rawDistance * 0.95 > 5.1) data++;
}

Expand Down

0 comments on commit 99c9280

Please sign in to comment.