Xsepria 1 Posted August 14, 2023 Share Posted August 14, 2023 basically just started coding today, and i have no idea why my fight class is not fighting. it will cast the buffs just fine but no combat spells Ret Paladin.cs Link to comment https://wrobot.eu/forums/topic/15269-fightclass-not-fighting/ Share on other sites More sharing options...
Zer0 148 Posted August 14, 2023 Share Posted August 14, 2023 Almost all your comparison operators seem to be reversed. for example: if(FlashHeal.KnownSpell && FlashHeal.IsSpellUsable && FlashHeal.IsDistanceGood && ObjectManager.Me.HealthPercent > 50) { FlashHeal.Launch(); return; } means that Flash Heal will be used when your health percent is above 50%. You want the opposite: if(FlashHeal.KnownSpell && FlashHeal.IsSpellUsable && FlashHeal.IsDistanceGood && ObjectManager.Me.HealthPercent < 50) { FlashHeal.Launch(); return; } Link to comment https://wrobot.eu/forums/topic/15269-fightclass-not-fighting/#findComment-68653 Share on other sites More sharing options...
Xsepria 1 Posted August 14, 2023 Author Share Posted August 14, 2023 i will fix it and see if it helps, thank you! Link to comment https://wrobot.eu/forums/topic/15269-fightclass-not-fighting/#findComment-68654 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now