What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Trinity Monk CR help

Qam

Member
Joined
Jul 5, 2014
Messages
36
Reaction score
0
Could someone please point me to the part of code I would have to change to use Epiphany, Blinding flash and serenity on cooldown?
 
Serenity Cooldown monk

I can fix that for you, the file you need to edit is in your demon buddy folder/Plugins/Trinity/Combat/Abilitys/MonkCombat.cs

Serenity line 77
Change:
Code:
// Serenity if health is low
            if ((Player.CurrentHealthPct <= 0.50 || (Player.IsIncapacitated && Player.CurrentHealthPct <= 0.90)) && CanCast(SNOPower.Monk_Serenity))
Into:
Code:
// Serenity if health is low
if (CanCast(SNOPower.Monk_Serenity))

Epiphany Line 68-71
Change:
Code:
            // Epiphany: spirit regen, dash to targets
            if (!UseOOCBuff && !IsCurrentlyAvoiding && CanCast(SNOPower.X1_Monk_Epiphany, CanCastFlags.NoTimer) && (Settings.Combat.Monk.EpiphanyOffCD ||
                (TargetUtil.EliteOrTrashInRange(15f) || TargetUtil.AnyMobsInRange(15f, 5)) &&
                (Player.PrimaryResourcePct < 0.50 || ((Runes.Monk.DesertShroud.IsActive || Runes.Monk.SoothingMist.IsActive) && Player.CurrentHealthPct < 0.50)))
                )
Into:
Code:
// Epiphany: spirit regen, dash to targets
if (CanCast(SNOPower.X1_Monk_Epiphany))

Blinding Flash Line 101-114
Change:
Code:
            // Blinding Flash
            if (!UseOOCBuff && Player.PrimaryResource >= 20 && CanCast(SNOPower.Monk_BlindingFlash) &&
                (
                    TargetUtil.AnyElitesInRange(15, 1) ||
                    Player.CurrentHealthPct <= 0.4 ||
                    (TargetUtil.AnyMobsInRange(15, 3)) ||
                    (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f) ||
                // as pre-sweeping wind buff
                    (TargetUtil.AnyMobsInRange(15, 1) && CanCast(SNOPower.Monk_SweepingWind) && !GetHasBuff(SNOPower.Monk_SweepingWind) && _hasInnaSet)
                ) &&
                // Check if either we don't have sweeping winds, or we do and it's ready to cast in a moment
                (CheckAbilityAndBuff(SNOPower.Monk_SweepingWind) ||
                 (!GetHasBuff(SNOPower.Monk_SweepingWind) &&
                 (CanCast(SNOPower.Monk_SweepingWind, CanCastFlags.NoTimer))) ||
                 Player.CurrentHealthPct <= 0.25))
Into (This one wont check if enemys are close or anything it will just use it every time it can but thats kinda what you asked for so i did that):
Code:
// Blinding Flash
if (CanCast(SNOPower.Monk_BlindingFlash))
[/CODE]
or (This will use it off CD if 1 or more mobs is in range):
Code:
// Blinding Flash
if (CanCast(SNOPower.Monk_BlindingFlash) && TargetUntil.AnyMobsInRange(15, 1))

Remeber these changes has not been tested by me except the serenity one but they should all work.
 
Last edited:
Back
Top