forked from MagicBane/Server
Uppercase enum.
This commit is contained in:
@@ -217,7 +217,7 @@ public class TransferStatPowerAction extends AbstractPowerAction {
|
||||
// Apply any power effect modifiers (such as stances)
|
||||
PlayerBonuses bonus = source.getBonuses();
|
||||
if (bonus != null)
|
||||
damage *= (1 + bonus.getFloatPercentAll(ModType.PowerDamageModifier, SourceType.None));
|
||||
damage *= (1 + bonus.getFloatPercentAll(ModType.PowerDamageModifier, SourceType.NONE));
|
||||
|
||||
//get amount to transfer
|
||||
fromAmount = damage;
|
||||
@@ -243,7 +243,7 @@ public class TransferStatPowerAction extends AbstractPowerAction {
|
||||
AbstractNetMsg mhmFrom = null;
|
||||
|
||||
//stop if target is immune to drains
|
||||
if (from.getBonuses().getBool(ModType.ImmuneTo, SourceType.Drain)) {
|
||||
if (from.getBonuses().getBool(ModType.ImmuneTo, SourceType.DRAIN)) {
|
||||
ModifyHealthMsg mhm = new ModifyHealthMsg(source, to, 0f, 0f, 0f, powerID, powerName, trains, effectID);
|
||||
mhm.setUnknown03(5); //set target is immune
|
||||
DispatchMessage.sendToAllInRange(from, mhm);
|
||||
|
||||
Reference in New Issue
Block a user