Advertisement
Guest User

Test

a guest
Jul 27th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. function ()
  2.     local base, posBuff, negBuff = UnitAttackPower("player");
  3.     local effective = base + posBuff + negBuff;
  4.     -- Use GetCombatRatingBonus(30) instead of GetCombatRatingBonus(29). Resuls are more accurate
  5.     local versatility = 1+GetCombatRatingBonus(30)/100;
  6.     local specGroup = GetActiveSpecGroup();  
  7.     local isNeverSurrenderSelected = select(4, GetTalentInfo(5, 2, specGroup));
  8.     local isIndomitableSelected = select(4, GetTalentInfo(5, 3, specGroup));
  9.     if (isNeverSurrenderSelected) then
  10.         ratio = 2*  0.9;
  11.     elseif (isIndomitableSelected) then
  12.         ratio = 1.25 * 0.9;        
  13.     else
  14.         ratio = 0.9;
  15.     end;  
  16.     local value = 28 * effective *  versatility  *  ratio * 3
  17.     --DragonSkin artefact trait later
  18.     --value = value * 1.06
  19.     --T18 4PC (not tested) based on spellID of i18n
  20.     return(value)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement