Search in sources :

Example 1 with CrystalAura

use of meteordevelopment.meteorclient.systems.modules.combat.CrystalAura in project tanuki by AntiCope.

the class FuckedDetector method onTick.

@EventHandler
public void onTick(TickEvent.Post event) {
    CrystalAura caura = Modules.get().get(CrystalAura.class);
    CrystalAuraAccessor cauraAccessor = (CrystalAuraAccessor) caura;
    if (caura.isActive()) {
        target = cauraAccessor.bestTarget();
        if (target != null) {
            isTargetFucked = !isSurrounded(target) && !isBurrowed(target) && cauraAccessor.bestTargetDamage() >= damageThreshold.get();
        }
    }
}
Also used : CrystalAura(meteordevelopment.meteorclient.systems.modules.combat.CrystalAura) CrystalAuraAccessor(anticope.tanuki.mixin.meteor.CrystalAuraAccessor) EventHandler(meteordevelopment.orbit.EventHandler)

Example 2 with CrystalAura

use of meteordevelopment.meteorclient.systems.modules.combat.CrystalAura in project orion by AntiCope.

the class AutoXP method onActivate.

@Override
public void onActivate() {
    if (moduleControl.get()) {
        CrystalAura ca = Modules.get().get(CrystalAura.class);
        KillAura ka = Modules.get().get(KillAura.class);
        BedAura ba = Modules.get().get(BedAura.class);
        Offhand offhand = Modules.get().get(Offhand.class);
        if (ca.isActive())
            ca.toggle();
        if (ka.isActive())
            ka.toggle();
        if (ba.isActive())
            ba.toggle();
        if (offhand.isActive() && refillOffhand.get()) {
            toggledOffhand = true;
            offhand.toggle();
        }
    }
    alerted = false;
    slotRefill = refillSlot.get() - 1;
}
Also used : CrystalAura(meteordevelopment.meteorclient.systems.modules.combat.CrystalAura) KillAura(meteordevelopment.meteorclient.systems.modules.combat.KillAura) Offhand(meteordevelopment.meteorclient.systems.modules.combat.Offhand)

Aggregations

CrystalAura (meteordevelopment.meteorclient.systems.modules.combat.CrystalAura)2 CrystalAuraAccessor (anticope.tanuki.mixin.meteor.CrystalAuraAccessor)1 KillAura (meteordevelopment.meteorclient.systems.modules.combat.KillAura)1 Offhand (meteordevelopment.meteorclient.systems.modules.combat.Offhand)1 EventHandler (meteordevelopment.orbit.EventHandler)1