blocked power type structuring

This commit is contained in:
2024-06-27 19:54:29 -05:00
parent 70cb469190
commit 8943121336
2 changed files with 29 additions and 16 deletions
+3 -3
View File
@@ -946,7 +946,7 @@ public enum PowersManager {
continue;
// If something blocks the action, then stop
if (ab.blocked(target)) {
if (ab.blocked(target,pb.vampDrain)) {
PowersManager.sendEffectMsg(playerCharacter, 5, ab, pb);
continue;
}
@@ -1121,7 +1121,7 @@ public enum PowersManager {
continue;
// If something blocks the action, then stop
if (ab.blocked(target))
if (ab.blocked(target,pb.vampDrain))
continue;
// TODO handle overwrite stack order here
String stackType = ab.getStackType();
@@ -1435,7 +1435,7 @@ public enum PowersManager {
if (trains < ab.getMinTrains() || trains > ab.getMaxTrains())
continue;
// If something blocks the action, then stop
if (ab.blocked(target))
if (ab.blocked(target,pb.vampDrain))
// sendPowerMsg(pc, 5, msg);
continue;
// TODO handle overwrite stack order here