Never say never when there's
always a chance ;)
I tweaked Kelrugem's FullOverlay Extension to add this for you (because that extension works with this file, is widely used, and changes are allowed) :)
Just put "Always a Chance (Ex)" in the Class Features list.
For the future/reference/adding this to something else:
in manager_action_attack.lua
added (before function onAttack):
Code:
--- This function checks for special abilities (bmos)
function hasSpecialAbility(nodeChar, sSpecAbil)
if not sSpecAbil then
return false
end
local sLowerSpecAbil = string.lower(sSpecAbil)
for _,vNode in pairs(DB.getChildren(nodeChar, 'specialabilitylist')) do
if string.lower(DB.getValue(vNode, 'name', '')) == sLowerSpecAbil then
return true
end
end
return false
end
added (after section with comment "-- Get the crit threshold" and before "rAction.nFirstDie = 0;"):
Code:
-- Check for Always a Chance (Ex) special ability (bmos)
local nodeChar
if bIsSourcePC then nodeChar = ActorManager.getCreatureNode(rSource) end
local bNoFumble = hasSpecialAbility(nodeChar, 'Always a Chance (Ex)')
changed this:
Code:
elseif rAction.nFirstDie == 1 then
to this:
Code:
elseif not bNoFumble and rAction.nFirstDie == 1 then