private static final int WIND = 10;
private static final int WATER = 10;
private static final int FIRE = 10;
private static final int EARTH = 10;
@Override
public void addEffect(L1Character user, L1Character target,
int durationSeconds) {
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.addWind(WIND);
pc.addWater(WATER);
pc.addFire(FIRE);
pc.addEarth(EARTH);
pc.sendPackets(new S_OwnCharAttrDef(pc));
}
}
Remove Effect:
@Override
public void removeEffect(L1Character target) {
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.addWind(-WIND);
pc.addWater(-WATER);
pc.addFire(-FIRE);
pc.addEarth(-EARTH);
pc.sendPackets(new S_OwnCharAttrDef(pc));
}
}