Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function xPriestCheck() --this whole function actually calculates with the help of the addon BonusScanner and the math's exactly(+-about 30-40) how much each priestheal spell(not renew) will heal with your buffs+gear. should be read onevent up there at priest login.
- local p= Printd
- local _,_,_,_,talentRank,_ = GetTalentInfo(2,14);
- local _,spw,_,_ = UnitStat('player',5);
- local sgf = spw * 5*talentRank/100;
- local _,_,_,_,talentRank,_ = GetTalentInfo(2,15);
- local shMod = 2*talentRank/100 + 1;
- local _,_,_,_,talentRank,_ = GetTalentInfo(2,10);
- local ihMod = 1 - 5*talentRank/100;
- local _,_,_,_,talentRank,_ = GetTalentInfo(2,12);
- local pohMod = 1 - 10*talentRank/100;
- local hpw = BonusScanner:GetBonus("HEAL")
- if sgf>0 then
- g1h = math.floor(((924+1038)/2)*shMod + ((hpw +sgf)*(3/3.5)));
- g2h = math.floor(((1178+1318)/2)*shMod + ((hpw +sgf)*(3/3.5)));
- g3h = math.floor(((1470+1642)/2)*shMod + ((hpw +sgf)*(3/3.5)));
- g4h = math.floor(((1813+2021)/2)*shMod + ((hpw +sgf)*(3/3.5)));
- g5h = math.floor(((1966+2194)/2)*shMod + ((hpw +sgf)*(3/3.5)));
- h1e = math.floor(((307+353)/2)*shMod + (hpw +sgf)*(3/3.5)*(1-((20-16)*0.0375)));
- h2e = math.floor(((445+507)/2)*shMod + (hpw +sgf)*(3/3.5));
- h3e = math.floor(((586+662)/2)*shMod + (hpw +sgf)*(3/3.5));
- h4e = math.floor(((734+826)/2)*shMod + (hpw +sgf)*(3/3.5));
- poh1 = math.floor(((301+321)/2)*shMod + (hpw +sgf)*(1/3));
- poh2 = math.floor(((444+472)/2)*shMod + (hpw +sgf)*(1/3));
- poh3 = math.floor(((657+695)/2)*shMod + (hpw +sgf)*(1/3));
- poh4 = math.floor(((939+991)/2)*shMod + (hpw +sgf)*(1/3));
- poh5 = math.floor(((1041+1099)/2)*shMod + (hpw +sgf)*(1/3));
- else
- g1h = math.floor(((924+1038)/2)*shMod + (hpw *3/3.5));
- g2h = math.floor(((1178+1318)/2)*shMod + (hpw *3/3.5));
- g3h = math.floor(((1470+1642)/2)*shMod + (hpw *3/3.5));
- g4h = math.floor(((1813+2021)/2)*shMod + (hpw *3/3.5));
- g5h = math.floor(((1966+2194)/2)*shMod + (hpw *3/3.5));
- h1e = math.floor(((307+353)/2)*shMod + (hpw *3/3.5)*(1-((20-16)*0.0375)));
- h2e = math.floor(((445+507)/2)*shMod + (hpw *3/3.5));
- h3e = math.floor(((586+662)/2)*shMod + (hpw *3/3.5));
- h4e = math.floor(((734+826)/2)*shMod + (hpw *3/3.5));
- poh1 = math.floor(((301+321)/2)*shMod + (hpw)*(1/3));
- poh2 = math.floor(((444+472)/2)*shMod + (hpw)*(1/3));
- poh3 = math.floor(((657+695)/2)*shMod + (hpw)*(1/3));
- poh4 = math.floor(((939+991)/2)*shMod + (hpw)*(1/3));
- poh5 = math.floor(((1041+1099)/2)*shMod + (hpw)*(1/3));
- end
- p(pohMod)
- p("- Spiritual Guidance healing: "..sgf)
- p("- Spiritual Healing factor: "..shMod -1)
- p(" - Spirit: "..spw)
- p(" - Healing: "..hpw)
- p("Greater Healing(Rank 1): "..g1h.." (g1h)".." - "..(math.floor((g1h/(370*ihMod))*1000)/1000).. " HpM")
- p("Greater Healing(Rank 2): "..g2h.." (g2h)".." - "..(math.floor((g2h/(455*ihMod))*1000)/1000).. " HpM")
- p("Greater Healing(Rank 3): "..g3h.." (g3h)".." - "..(math.floor((g3h/(545*ihMod))*1000)/1000).. " HpM")
- p("Greater Healing(Rank 4): "..g4h.." (g4h)".." - "..(math.floor((g4h/(655*ihMod))*1000)/1000).. " HpM")
- p("Greater Healing(Rank 5): "..g5h.." (g5h)".." - "..(math.floor((g5h/(710*ihMod))*1000)/1000).. " HpM")
- p("Heal(Rank 1): "..h1e.." (h1e)".." - "..(math.floor((h1e/(155*ihMod))*1000)/1000).. " HpM")
- p("Heal(Rank 2): "..h2e.." (h2e)".." - "..(math.floor((h2e/(205*ihMod))*1000)/1000).. " HpM")
- p("Heal(Rank 3): "..h3e.." (h3e)".." - "..(math.floor((h3e/(255*ihMod))*1000)/1000).. " HpM")
- p("Heal(Rank 4): "..h4e.." (h4e)".." - "..(math.floor((h4e/(305*ihMod))*1000)/1000).. " HpM")
- p("PoH(Rank 1): "..poh1.." (poh1)".." - "..(math.floor((poh1*5/(410*pohMod))*1000)/1000).. " HpM")
- p("PoH(Rank 2): "..poh2.." (poh2)".." - "..(math.floor((poh2*5/(560*pohMod))*1000)/1000).. " HpM")
- p("PoH(Rank 3): "..poh3.." (poh3)".." - "..(math.floor((poh3*5/(770*pohMod))*1000)/1000).. " HpM")
- p("PoH(Rank 4): "..poh4.." (poh4)".." - "..(math.floor((poh4*5/(1030*pohMod))*1000)/1000).. " HpM")
- p("PoH(Rank 5): "..poh5.." (poh5)".." - "..(math.floor((poh5*5/(1070*pohMod))*1000)/1000).. " HpM")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement