A message being printed to the screen saying you avoided your own spell would be useful. Currently, if you cast Corrosive Vapor (as an example) near yourself, you don't know if Spell Shaping saved you or not until you go to the next turn and take damage. It'd be useful to know if you should Phase Door out or not the next turn.
The code fix for this is simple. The function _M:spellFriendlyFire() in file class/interface/Combat.lua should be changed to this:
Code: Select all
--- Do we get hit by our own AOE ?
function _M:spellFriendlyFire()
print("[SPELL] friendly fire chance", self:getTalentLevelRaw(self.T_SPELL_SHAPING) * 20 + (self:getLck() - 50) * 0.2)
if not rng.percent(self:getTalentLevelRaw(self.T_SPELL_SHAPING) * 20 + (self:getLck() - 50) * 0.2)
then
game.logSeen(self, "You avoid your own spell!")
return false
end
return true
end
-cheapy