Vaioui 1 Posted April 6, 2015 Share Posted April 6, 2015 How can I target an enemy in Range and cast e.g. Crusader Strike on it? I need this for my Paladin healing profile, to improve holy power generation. Link to comment https://wrobot.eu/forums/topic/2122-target-enemy-and-cast-spell-on-it/ Share on other sites More sharing options...
Droidz 2738 Posted April 7, 2015 Share Posted April 7, 2015 Hello, You can add spell normally (just add "Crusader Strike" and WRobot will launch this spell when you select an enemy in range) Or if you want automatically attack near enemy, in the spell name put: local name = GetSpellInfo(35395); TargetNearestEnemy(); if UnitExists("target") and UnitIsEnemy("player","target") and IsSpellInRange(name, "target") then CastSpellByName(name, "target"); end TargetLastTarget(); In spell settings "Combat only" > False, "Not spell, is lua script" > true, "Timer" > 3000 (for test all 3 secondes). AudreyH and Matenia 2 Link to comment https://wrobot.eu/forums/topic/2122-target-enemy-and-cast-spell-on-it/#findComment-9962 Share on other sites More sharing options...
Vaioui 1 Posted April 7, 2015 Author Share Posted April 7, 2015 Thank you Link to comment https://wrobot.eu/forums/topic/2122-target-enemy-and-cast-spell-on-it/#findComment-9965 Share on other sites More sharing options...
nike 0 Posted May 18, 2017 Share Posted May 18, 2017 her to fight back Link to comment https://wrobot.eu/forums/topic/2122-target-enemy-and-cast-spell-on-it/#findComment-26857 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