Radziu
Member
- Joined
- Sep 8, 2012
- Messages
- 205
- Reaction score
- 15
**Wave of Force code help**Fixed//Meteor help Please
Hello,
I am trying to have Wave of Force//Heat Wave be a "spammable" primary attack. My arcane power regen/+on crit/total allows me to just spam the spell as a primary. Unfortunately DB/Trinity only uses the spell very seldom, as if it thinks it is on like a 5-7 second cool-down.
I changed the code a little to elites within 15 yard, 1 or more, and any mob 15 yard, 1 or more. No avail. Please help!
I am no coding guy at all, just reading it as it is and playing with numbers.
Thanks!
// Wave of force
if (!UseOOCBuff && !Player.IsIncapacitated && Player.PrimaryResource >= 20 && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce) &&
(TargetUtil.AnyElitesInRange(15, 1) || TargetUtil.AnyMobsInRange(15, 1) || Player.CurrentHealthPct >= .9 || (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f)))
{
return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
}
This code previously posted by someone does not help
// Wave of Force
if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 25 &&
(TargetUtil.AnyMobsInRange(15) && CurrentTarget.RadiusDistance <= 15f) &&
PowerManager.CanCast(SNOPower.Wizard_WaveOfForce))
{
return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
}
}
Hello,
I am trying to have Wave of Force//Heat Wave be a "spammable" primary attack. My arcane power regen/+on crit/total allows me to just spam the spell as a primary. Unfortunately DB/Trinity only uses the spell very seldom, as if it thinks it is on like a 5-7 second cool-down.
I changed the code a little to elites within 15 yard, 1 or more, and any mob 15 yard, 1 or more. No avail. Please help!
I am no coding guy at all, just reading it as it is and playing with numbers.
Thanks!
// Wave of force
if (!UseOOCBuff && !Player.IsIncapacitated && Player.PrimaryResource >= 20 && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce) &&
(TargetUtil.AnyElitesInRange(15, 1) || TargetUtil.AnyMobsInRange(15, 1) || Player.CurrentHealthPct >= .9 || (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f)))
{
return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
}
This code previously posted by someone does not help
// Wave of Force
if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_WaveOfForce, CombatBase.CanCastFlags.NoTimer) && Player.PrimaryResource >= 25 &&
(TargetUtil.AnyMobsInRange(15) && CurrentTarget.RadiusDistance <= 15f) &&
PowerManager.CanCast(SNOPower.Wizard_WaveOfForce))
{
return new TrinityPower(SNOPower.Wizard_WaveOfForce, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
}
}
Last edited: