|
|
@ -348,7 +348,7 @@ public enum PowersManager { |
|
|
|
|
|
|
|
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
PlayerBonuses bonus = playerCharacter.getBonuses(); |
|
|
|
PlayerBonuses bonus = playerCharacter.getBonuses(); |
|
|
|
SourceType sourceType = EffectSourceType.GetSourceType(pb.getCategory()); |
|
|
|
EffectSourceType sourceType = EffectSourceType.getEffectSourceType(pb.getCategory()); |
|
|
|
if (bonus != null && (bonus.getBool(ModType.Stunned, EffectSourceType.None) || bonus.getBool(ModType.CannotCast, EffectSourceType.None) || bonus.getBool(ModType.BlockedPowerType, sourceType))) |
|
|
|
if (bonus != null && (bonus.getBool(ModType.Stunned, EffectSourceType.None) || bonus.getBool(ModType.CannotCast, EffectSourceType.None) || bonus.getBool(ModType.BlockedPowerType, sourceType))) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
@ -631,7 +631,7 @@ public enum PowersManager { |
|
|
|
// verify player is in correct mode (combat/nonCombat)
|
|
|
|
// verify player is in correct mode (combat/nonCombat)
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
// verify player is not stunned or prohibited from casting
|
|
|
|
PlayerBonuses bonus = caster.getBonuses(); |
|
|
|
PlayerBonuses bonus = caster.getBonuses(); |
|
|
|
SourceType sourceType = EffectSourceType.GetSourceType(pb.getCategory()); |
|
|
|
EffectSourceType sourceType = EffectSourceType.getEffectSourceType(pb.getCategory()); |
|
|
|
if (bonus != null && (bonus.getBool(ModType.Stunned, EffectSourceType.None) || bonus.getBool(ModType.CannotCast, EffectSourceType.None) || bonus.getBool(ModType.BlockedPowerType, sourceType))) |
|
|
|
if (bonus != null && (bonus.getBool(ModType.Stunned, EffectSourceType.None) || bonus.getBool(ModType.CannotCast, EffectSourceType.None) || bonus.getBool(ModType.BlockedPowerType, sourceType))) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
@ -795,7 +795,7 @@ public enum PowersManager { |
|
|
|
if (bonus.getBool(ModType.Stunned, EffectSourceType.None)) |
|
|
|
if (bonus.getBool(ModType.Stunned, EffectSourceType.None)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
SourceType sourceType = EffectSourceType.GetSourceType(pb.getCategory()); |
|
|
|
EffectSourceType sourceType = EffectSourceType.getEffectSourceType(pb.getCategory()); |
|
|
|
if (bonus.getBool(ModType.BlockedPowerType, sourceType)) { |
|
|
|
if (bonus.getBool(ModType.BlockedPowerType, sourceType)) { |
|
|
|
finishRecycleTime(msg.getPowerUsedID(), playerCharacter, true); |
|
|
|
finishRecycleTime(msg.getPowerUsedID(), playerCharacter, true); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -1067,7 +1067,7 @@ public enum PowersManager { |
|
|
|
if (bonus != null) { |
|
|
|
if (bonus != null) { |
|
|
|
if (bonus.getBool(ModType.Stunned, EffectSourceType.None)) |
|
|
|
if (bonus.getBool(ModType.Stunned, EffectSourceType.None)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
SourceType sourceType = EffectSourceType.GetSourceType(pb.getCategory()); |
|
|
|
EffectSourceType sourceType = EffectSourceType.getEffectSourceType(pb.getCategory()); |
|
|
|
if (bonus.getBool(ModType.BlockedPowerType, sourceType)) |
|
|
|
if (bonus.getBool(ModType.BlockedPowerType, sourceType)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|