forked from MagicBane/Server
Merge Damage and Source types.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
package engine.powers.poweractions;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.DamageType;
|
||||
import engine.Enum.ModType;
|
||||
import engine.Enum.SourceType;
|
||||
import engine.gameManager.ChatManager;
|
||||
@@ -46,7 +45,7 @@ public class TransferStatPowerAction extends AbstractPowerAction {
|
||||
protected float transferEfficiencyRamp;
|
||||
protected boolean transferEfficiencyRampAdd;
|
||||
protected boolean targetToCaster;
|
||||
protected DamageType damageType;
|
||||
protected SourceType damageType;
|
||||
protected EffectsBase effect;
|
||||
|
||||
public TransferStatPowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
|
||||
@@ -80,7 +79,7 @@ public class TransferStatPowerAction extends AbstractPowerAction {
|
||||
// Damage type can sometimes be null in the DB.
|
||||
|
||||
if (damageString.isEmpty() == false)
|
||||
this.damageType = DamageType.valueOf(damageString);
|
||||
this.damageType = SourceType.valueOf(damageString);
|
||||
} catch (Exception e) {
|
||||
this.damageType = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user