forked from MagicBane/Server
Power Action Constructor (not finished)
This commit is contained in:
@@ -15,6 +15,7 @@ import engine.objects.AbstractCharacter;
|
||||
import engine.objects.AbstractWorldObject;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
@@ -26,12 +27,11 @@ public class RemoveEffectPowerAction extends AbstractPowerAction {
|
||||
public EffectSourceType sourceType;
|
||||
private boolean removeAll;
|
||||
|
||||
public RemoveEffectPowerAction(ResultSet rs) throws SQLException {
|
||||
public RemoveEffectPowerAction(PowerAction rs){
|
||||
super(rs);
|
||||
String effectTypeToRemove = rs.getString("effectSourceToRemove").replace("-", "").trim();
|
||||
String effectTypeToRemove = rs.damageType.name();
|
||||
sourceType = EffectSourceType.GetEffectSourceType(effectTypeToRemove);
|
||||
int flags = rs.getInt("flags");
|
||||
this.removeAll = ((flags & 2) != 0) ? true : false;
|
||||
this.removeAll = rs.removeAll;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user