DamageByAttack effect should use DIFF mode by default.

This commit is contained in:
MobiusDevelopment
2019-05-25 00:06:11 +00:00
parent 052fb44456
commit f6c31de65f
109 changed files with 60 additions and 667 deletions

View File

@@ -17,6 +17,7 @@
package handlers.effecthandlers;
import org.l2jmobius.gameserver.enums.DamageByAttackType;
import org.l2jmobius.gameserver.enums.StatModifierType;
import org.l2jmobius.gameserver.model.StatsSet;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
@@ -41,6 +42,10 @@ public class DamageByAttack extends AbstractEffect
{
_value = params.getDouble("amount");
_type = params.getEnum("type", DamageByAttackType.class, DamageByAttackType.NONE);
if (params.getEnum("mode", StatModifierType.class, StatModifierType.DIFF) != StatModifierType.DIFF)
{
LOGGER.warning(getClass().getSimpleName() + " can only use DIFF mode.");
}
}
@Override