I've been trying to make a weak aura that accurately depicts the min heal for expel harm so that I can ultimately set it to trigger when my health dips below a certain threshold and I'm having a lot of a trouble getting either of my expel harm min values to be identical to the in game tooltip. I've used the formulas from wowdb (expelHealMMO) and wowhead (expelHealWH), but neither are accurate. I've shown both results as well as my stat screen and the expel harm tooltip for comparison. These values will be slightly off because the method I'm using to pull weapon dps pulls *average* dps rather than min/max dps, but that's fine for me. Even when manually inputting the min dps the wowdb formula is off. If there is a better method to use to pull min/max dps without manual input that would be awesome.
Could anyone help me get this formula working?
Image link: https://dl.dropboxusercontent.com/u/...015_005806.jpg
Code:dCe9eaGiKYLKsWOevNsuwLuLxbsnlPsULiSlv0VavAyKshdvwgk5zIOPHKUgkSnqY3KkmoKOZjvQ7HsTpPe1brrlukfpeuXevvUOk0gLsvFuvQrQk5KsvTsvXmLsPBsQStq0pfjdLsTusHNcmvI6QsjYxLsQ3kLK7kLk7v4VGYGHomjlwQOhtHjlsDzjBwf8zKQrtjNgv9AKWSjCBkA3i8BvA4sXYr0ZjY0P66QQ2oOQVtkA8GW5jvTEPeA)khCHCamdq6aKoKdWHlHd4BXkGKL2aKMxQrO0lxq4bOfmcGXVKFnLli8aC4NWW5Ve5z7z4WHdfxdLyi8fPK6ZK(q2dFxoCUMDQCnuopb9CwDNbxUKA3ZWHdhkUgkXWovsft7Ug2CLyA31qIIot7HSh2se8ot3vguyF1SiZP1iu6lsAz7z4WHdfxdLyOYPWwtYHSh2PsQyApe6HnxjM2dHEirrNP9EgoC4W9mC4WHIRHsm00c4kxAi7HVlVVxMax5s5VlVpb8fHFj133lZ2YtqroTgHsFrsRRHCqLLTNHdhouCnuIHMwF2GHShAAbCLl1kA9LpQdMUuFW(yQJ57JWSpQbmWr4KcYpyGxP0qMw72ZWHdhUNHdhouCnuIHxRpBWq2d1UNHdhomrIHdhouCnuIHxlGRCPHSh(U8(EzcCLlL)U8(eWxe(LuFFVmBlpbf50Aek9fjTUgY1rw2EgoC4WejgoC4qX1qjgET(Sbdzp8AbCLl1kA9LpQdMUuFW(yQJ57JWSpQbmWr4KcYpyGxP0qMw72ZWHdhUNHdhouCnuIHfenL4vPe60LAi7H5qDsLv39mT(SbzqNN8Kfh1ExRpBqg05So5OMSNYPWwtYS9mC4WHIRHsmSGOPeVkLO1VgYEyEhNm6LNZ1lNdA4lsj1Nj9SSE5ApPKrhCut2l306ZganxV8R1NnaUSYYGox5uyRjzgCtEYibxww2EgoC4W9mC4WHKL)tsmSGOPeVkLqNUuNNdPn888CiTZZcIMs8QuIw)Apfr6aWtW7WmUMnIYR0bKCbWj5PtVid5a46BQai5k)xkanfPrr4wLs4wbqBa(Lky)e8E0Ma8tuWxeEau)(na)sfSMI0OiCRsjCROnbOPinkc3Quc3c2TPiv(LmaTm7WdazrN)siRVPcGxq4bqt(0Uv0EOOYaQKjzrjhdUo4yqj14qcQudaXVPmjpD6fPuajxa4tha5sYdGvXt3YJ2ZakwDZql1KqbLwgCjzrzCibvkdG4QshYbin)Hd8g)cxFihaZFHZhYHhEaiVIkKdG5VW5d5WdpaUsueEihaZFHZhYHhEaivgvihaZFHZhYHhE4bqFQdhKkpGKH2WdGuayDYDQ9KlbJe0PSBTDsT4ca8bKCuzXfEe
Note: I'll be adding resolve afterwards as I assume it functions as a blanket modifier across the ability and wouldn't impact the base calculations of expel harm. I also assume versatility will act the same way since the wowdb formula doesn't include a versatility modifier, but the wowhead formula includes a simple 1+$versadmg multiplier.
edit: Is there a way to add an if function for OH damage rather than having to manually remove the comment dashes? I tried doing a few things like "if GetInventoryItemLink("player", 16) ~= nil then..." which should work since it returns "nil" if an item isn't present, but that didn't appear to work at all.