// Wave of light
if (!bOOCBuff && !bCurrentlyAvoiding && !playerStatus.bIsIncapacitated &&
(iElitesWithinRange[RANGE_25] > 0 || ((targetCurrent.bThisEliteRareUnique || targetCurrent.bThisBoss) && targetCurrent.fRadiusDistance <= 14f) || iAnythingWithinRange[RANGE_25] > 3) &&
hashPowerHotbarAbilities.Contains(SNOPower.Monk_WaveOfLight) &&
GilesUseTimer(SNOPower.Monk_WaveOfLight) &&
(playerStatus.dCurrentEnergy >= 80 || playerStatus.dCurrentEnergyPct >= 0.85))
{
if (!bOOCBuff && playerStatus.dCurrentEnergy >= 135 && (iElitesWithinRange[RANGE_25] >= 1 || ((targetCurrent.bThisEliteRareUnique || targetCurrent.bThisBoss) && targetCurrent.fRadiusDistance <= 30f)))
{
if (hashPowerHotbarAbilities.Contains(SNOPower.Monk_MantraOfConviction) && GilesUseTimer(SNOPower.Monk_MantraOfConviction))
{
return new GilesPower(SNOPower.Monk_MantraOfConviction, 0f, vNullLocation, iCurrentWorldID, -1, 1, 1, USE_SLOWLY);
}
}
return new GilesPower(SNOPower.Monk_WaveOfLight, 16f, vNullLocation, -1, targetCurrent.iThisACDGUID, 1, 1, USE_SLOWLY);
}