forked from MagicBane/Server
Refactored poweractions
This commit is contained in:
@@ -16,9 +16,8 @@ import engine.objects.AbstractWorldObject;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.EffectsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.HashMap;
|
||||
|
||||
|
||||
@@ -27,10 +26,11 @@ public class InvisPowerAction extends AbstractPowerAction {
|
||||
private String effectID;
|
||||
private EffectsBase effect;
|
||||
|
||||
public InvisPowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
|
||||
public InvisPowerAction(PowerAction rs, HashMap<String, EffectsBase> effects) {
|
||||
super(rs);
|
||||
|
||||
this.effectID = rs.getString("effectID");
|
||||
this.effectID = rs.effects.get(0).effect_id;
|
||||
;
|
||||
this.effect = effects.get(this.effectID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user