Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub HealArea
- /if ( !${ShouldHealArea} || ${Me.Casting.ID} || ${Me.Stunned} ) /return
- /declare search string local radius 175 pc
- /declare limit int local ${SpawnCount[${search}]}
- /declare i int local ${Math.Rand[${limit}]}
- |/declare i int local 1
- /for i ${i} to ${limit} {
- /squelch /target id ${NearestSpawn[${i}, ${search}].ID}
- /delay 1s ${Target.Buff[1].ID}||${Target.Buff[2].ID}
- /if ( ${Target.ID} && ${Target.Type.Equal[PC]} ) {
- /if ( ${Target.Distance} < 200 && ${Me.CurrentMana} > ${Spell[${HealSpell}].Mana} ) {
- /if ( ${Target.PctHPs} <= ${HealPercent} ) {
- /call Announce "Healing ${Target.CleanName} with ${HealSpell}"
- /casting "${HealSpell}" gem8 -targetid|${Target.ID}
- /delay ${Spell[${HealSpell}].CastTime.Seconds}s (${Cast.Status.Equal[I]}||${Target.PctHPs}>80)
- /if ( ${Target.PctHPs} > ${HealPercent} ) /stopcast
- /varset SitTimer ${SitTimer.OriginalValue}
- /return
- }
- }
- }
- }
- /next i
- /return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement