|
|
@ -199,6 +199,10 @@ public enum PowersManager { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(msg.getPowerUsedID() == -1851459567){//backstab
|
|
|
|
|
|
|
|
applyPower(pc,pc,pc.loc,-1851459567,msg.getNumTrains(),false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (usePowerA(msg, origin, sendCastToSelf)) { |
|
|
|
if (usePowerA(msg, origin, sendCastToSelf)) { |
|
|
|
// Cast failed for some reason, reset timer
|
|
|
|
// Cast failed for some reason, reset timer
|
|
|
|
|
|
|
|
|
|
|
@ -1979,17 +1983,21 @@ public enum PowersManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(AbstractCharacter.IsAbstractCharacter(awo)) { |
|
|
|
if(AbstractCharacter.IsAbstractCharacter(awo)) { |
|
|
|
boolean immune = false; |
|
|
|
try { |
|
|
|
AbstractCharacter absChar = (AbstractCharacter)awo; |
|
|
|
boolean immune = false; |
|
|
|
for (AbstractEffectModifier mod : ab.getPowerAction().getEffectsBase().getModifiers()) { |
|
|
|
AbstractCharacter absChar = (AbstractCharacter) awo; |
|
|
|
if (absChar.getBonuses() != null){ |
|
|
|
for (AbstractEffectModifier mod : ab.getPowerAction().getEffectsBase().getModifiers()) { |
|
|
|
if(absChar.getBonuses().getBool(ModType.ImmuneTo, mod.sourceType) || absChar.getBonuses().getBool(ModType.NoMod, mod.sourceType)) |
|
|
|
if (absChar.getBonuses() != null) { |
|
|
|
immune = true; |
|
|
|
if (absChar.getBonuses().getBool(ModType.ImmuneTo, mod.sourceType) || absChar.getBonuses().getBool(ModType.NoMod, mod.sourceType)) |
|
|
|
|
|
|
|
immune = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(immune) |
|
|
|
if (immune) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|