Lately I've been trying to tweak Holy Paladin and bringing it into the next level, therefore I need some feedback from Nova Team:
I'm trying to make it smarter, sometimes all the raid is at 40%, theres 1 guy at 30% and it decides to cast a single heal on them instead of continuing to AoE, therefore I was thinking to implement something like this:
Code:
if Nova_Spell[PQ_HolyLight].check then
if members[1].HP < 90
and Nova_Spell[PQ_HolyLight].manaCost < select(4, Nova_UnitInfo("player"))
and PQR_SpellAvailable(635)
and AverageHealth(40)>90 then
PQR_CustomTarget = members[1].Unit
return true
end
end
I've found that there is an AverageHealth function which receives the range you want to check 40 is the normal range of spells and I assume it returns percentage and not the actual value.
Would this work?
Also I've been working on Eternal Flame spam rotation which is considerably superior for AoE healing.
This is the code I have so far:
But I'm trying to improve it aswell, for these scenarious when HolyPower capped(or Divine Purpose proc less than 3 seconds):
1 - Theres a few people who are under 80% but they still have Eternal Flame HoT on them and the rest of the raid is full hp, so lets heal use Eternal Flame on them again even if they have HoT ending in less then 5 seconds.
2 - Theres a few people who are under 80% but they still have Eternal Flame HoT on them and the rest of the raid is full hp, so lets heal use Eternal Flame on them again even if they have HoT.
3 - Everyone is full hp so lets just start rolling eternal flame on random people, priority on tank if he doesnt have it already or it is ending in less than 5 seconds.
This is what I've came up with but it isnt working
Code:
if PQR_SpellAvailable(85673) then
for i=1, #members do
if(not UnitBuffID(members[i].Unit, 114163)
and select(5, Nova_UnitInfo("player")) >= 3
and members[i].HP < 98)then
PQR_CustomTarget = members[i].Unit
CastSpellByName(GetSpellInfo(85673), members[i].Unit)
return true
end
else if select(5, Nova_UnitInfo("player")) >= 3
and members[i].HP <= 80 then
PQR_CustomTarget = members[i].Unit
CastSpellByName(GetSpellInfo(85673), members[i].Unit)
return true
end
else if not UnitBuffID(members[i].Unit, 114163)
and select(5, Nova_UnitInfo("player")) >= 5
and members[i].HP <= 100 then
PQR_CustomTarget = members[i].Unit
CastSpellByName(GetSpellInfo(85673), members[i].Unit)
return true
end
end
end
I also wanted to add Use trinket support, those who award spirit, does anyone have any idea how to? Thanks in advance.