I fixed the 'doing nothing' issue, it appears the code that is wrong was in the MindFlay/IsChanneling part of the statements and not in SW
. Here is what I changed:
I first changed SW
back, for better performance (note-- SWD doesnt need lineofsight or standing still):
And for MindFlay I changed the following (again fixed, a little more 'open' because you want this to trigger):
And then you can find the bug in the code in helpers.cs (you said 'Me.CastingSpellId != ...'):
And that made it work wonderfully, MindFlay over MindFlay is being clipped by a hair, and Mind Flay is Cancelled when something else proc's.
Can anyone confirm and I am not forgetting something? Just trying to help...

I first changed SW

Code:
public Composite SWD()
{
return new Decorator(
ret =>
!Me.Mounted &&
CurrentTargetIsValid &&
CurrentTargetIsEnemy &&
Me.CurrentTarget.HealthPercent <= 20 &&
Me.HealthPercent >= 20 &&
!CastingorGCDL() &&
IsInRange(Me.CurrentTarget, 40) &&
SpellManager.HasSpell("Shadow Word: Death") &&
GetSpellCooldown("Shadow Word: Death").TotalMilliseconds <= MyLatency,
new Action(delegate { CastSpell("Shadow Word: Death", Me.CurrentTarget); })
);
}
And for MindFlay I changed the following (again fixed, a little more 'open' because you want this to trigger):
Code:
public Composite MindFlay()
{
return new Decorator(
ret =>
!Me.Mounted &&
Me.Level > 9 &&
CurrentTargetIsValid &&
CurrentTargetIsEnemy &&
IsFacing(Me.CurrentTarget) &&
!Me.IsMoving &&
((!CastingorGCDL() && Me.ChanneledCastingSpellId != 15407) ||
(Me.ChanneledCastingSpellId == 15407 && Me.CurrentChannelTimeLeft.TotalMilliseconds < MyLatency)) &&
IsInRange(Me.CurrentTarget, 40) &&
Me.CurrentTarget.InLineOfSpellSight &&
SpellManager.HasSpell("Mind Flay"),
new Action(delegate { CastSpell("Mind Flay", Me.CurrentTarget); })
);
}
And then you can find the bug in the code in helpers.cs (you said 'Me.CastingSpellId != ...'):
Code:
public static bool Casting()
{
return Me.IsCasting && Me.ChanneledCastingSpellId != 15407; //Mind Flay
}
And that made it work wonderfully, MindFlay over MindFlay is being clipped by a hair, and Mind Flay is Cancelled when something else proc's.
Can anyone confirm and I am not forgetting something? Just trying to help...
Last edited: