forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
38 lines
1.4 KiB
3 years ago
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||
|
// Magicbane Emulator Project © 2013 - 2022
|
||
|
// www.magicbane.com
|
||
|
|
||
|
|
||
|
package engine.jobs;
|
||
|
|
||
|
import engine.objects.AbstractWorldObject;
|
||
|
import engine.objects.PlayerCharacter;
|
||
|
import engine.powers.EffectsBase;
|
||
|
|
||
|
public class FinishSpireEffectJob extends AbstractEffectJob {
|
||
|
|
||
|
public FinishSpireEffectJob(AbstractWorldObject target, String stackType, EffectsBase eb, int trains) {
|
||
|
super(null, target, stackType, trains, null, null, eb);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void doJob() {
|
||
|
|
||
|
PlayerCharacter pc = (PlayerCharacter) target;
|
||
|
|
||
|
if (pc == null)
|
||
|
return;
|
||
|
|
||
|
pc.endEffectNoPower(Integer.toString(eb.getUUID()));
|
||
|
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void _cancelJob() {
|
||
|
}
|
||
|
}
|