Focus Death/Power calculation fix.

Contributed by Sahar.
This commit is contained in:
MobiusDev 2015-08-30 08:39:28 +00:00
parent b04a91096c
commit ad4ce8677d

View File

@ -39,6 +39,12 @@ public class FuncMul extends AbstractFunction
{
if ((getApplayCond() == null) || getApplayCond().test(effector, effected, skill))
{
// Focus Death/Power fix by Sahar.
if ((getStat() == Stats.CRITICAL_DAMAGE) && (skill != null) && ((skill.getId() == 355) || (skill.getId() == 357)))
{
return initVal * (1 + ((getValue() - 1) / 2));
}
return initVal * getValue();
}
return initVal;