private static final int DMGUP = 10;
private static final int BOWDMGUP = 10;
@Override
public void addEffect(L1Character user, L1Character target,
int durationSeconds) {
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.addDmgup(DMGUP);
pc.addBowDmgup(BOWDMGUP);
}
}
Remove Effect:
private static final int DMGUP = 10;
private static final int BOWDMGUP = 10;
@Override
public void removeEffect(L1Character target) {
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.addDmgup(-DMGUP);
pc.addBowDmgup(-BOWDMGUP);
}
}
Receiving Damage:
if (hasSkillEffect(ILLUSION_AVATAR)) {
damage *= 1.2;
}