Thanks rrrix, gj as always.
One thing to note, are you aware of the problem with WD firebat with vampire rune? It stops channeling firebat if mana after initial cast cost is below 225, but the channeling is free with the rune.
Code:
// Fire Bats fast-attack
if (CanCast(SNOPower.Witchdoctor_Firebats) && Player.PrimaryResource >= fireBatsMana &&
(TargetUtil.AnyMobsInRange(Settings.Combat.WitchDoctor.FirebatsRange) || firebatsMaintain) && !hasCloudOfBats)
{
float range = firebatsMaintain ? Settings.Combat.WitchDoctor.FirebatsRange : V.F("WitchDoctor.Firebats.MaintainRange");
return new TrinityPower(SNOPower.Witchdoctor_Firebats, Settings.Combat.WitchDoctor.FirebatsRange, CurrentTarget.Position);
}
It seems CanCast() checks the initial mana cost of firebat and decides not cast it anymore.