1 Attachment(s)
[Extension] Targetable CRIT
Deprecated since the functionality provided here is now integrated in the base code :)
Hi :)
EDIT2: The CRIT stuff is now in the main code! :) So, only about the DMGTYPE stuff, see the EDIT note :)
I have seen that question very frequently, so, I made a very small extension: The effect CRIT is now targetable, that means that you can code things like IFT: CUSTOM(test); CRIT: 19; moreover, it supports the descriptors melee, ranged and opportunity, so, CRIT: 19, melee would only affect melee weapons :)
EDIT: Now DMGTYPE is targetable, too :)
But: It may be incompatible with other extensions (I can rewrite it for better compatibility but I have no time right now), and I may not have time to maintain it, hence, I would be very glad when someone could take over.
For devs: It is very easy:
Overwrite AttackManager of the 5e ruleset, search for
Code:
local aCritRange = EffectManager5E.getEffectsByType(rSource, "CRIT")
and replace it with
Code:
local aCritRange = EffectManager5E.getEffectsByType(rSource, "CRIT", aAttackFilter, rTarget);
Best,
Kelrugem :)
LICENSE: Normally CC-BY-NC for my extensions, i.e. you can use and change it however you want, integrate it in your code and reupload it etc., so you can do everything what you want with these extensions but do not commercialize it :) (and SmiteWorks is allowed to do anything and everything with it :D) But since this code is so simple and straightforward I do not dare to take any copyright over this, so, do what you want with that, but no commercialization :)
EDIT: Now DMGTYPE is targetable, too :) The code change is similar as above, search for the following in the DamageManager:
Code:
local aEffects = EffectManager5E.getEffectsByType(rSource, "DMGTYPE", {});
and change to
Code:
local aEffects = EffectManager5E.getEffectsByType(rSource, "DMGTYPE", {}, rTarget);