Power actions come from PowerActions.cfg (3fc5e725, tested). Deletes
AbstractPowerAction.getAllPowerActions and the ResultSet constructor on
every power action class. static_power_poweraction is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.0 KiB
Java
48 lines
2.0 KiB
Java
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
|
// Magicbane Emulator Project © 2013 - 2026
|
|
// https://www.magicbane.com
|
|
|
|
|
|
package engine.powers.poweractions;
|
|
|
|
import engine.math.Vector3fImmutable;
|
|
import engine.mbEnums.GameObjectType;
|
|
import engine.objects.AbstractCharacter;
|
|
import engine.objects.AbstractWorldObject;
|
|
import engine.objects.Mob;
|
|
import engine.parsers.objects.wpak.PowerActionTemplate;
|
|
import engine.powers.ActionsBase;
|
|
import engine.powers.PowersBase;
|
|
|
|
|
|
public class ClearAggroPowerAction extends AbstractPowerAction {
|
|
|
|
public ClearAggroPowerAction(PowerActionTemplate powerActionTemplate, int id) {
|
|
super(powerActionTemplate, id);
|
|
}
|
|
|
|
@Override
|
|
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
|
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
|
((Mob) awo).setCombatTarget(null);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
@Override
|
|
protected void _handleChant(AbstractCharacter source, AbstractWorldObject target, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
|
}
|
|
|
|
@Override
|
|
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc,
|
|
int numTrains, ActionsBase ab, PowersBase pb, int duration) {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
}
|