PVE flag
This commit is contained in:
@@ -1105,7 +1105,7 @@ public enum PowersManager {
|
||||
continue;
|
||||
// If something blocks the action, then stop
|
||||
|
||||
if (ab.blocked(target, pb, trains, null)) {
|
||||
if (ab.blocked(target, pb, trains, playerCharacter)) {
|
||||
|
||||
PowersManager.sendEffectMsg(playerCharacter, 5, ab, pb);
|
||||
continue;
|
||||
@@ -1292,7 +1292,7 @@ public enum PowersManager {
|
||||
continue;
|
||||
// If something blocks the action, then stop
|
||||
|
||||
if (ab.blocked(target, pb, trains, null))
|
||||
if (ab.blocked(target, pb, trains, caster))
|
||||
continue;
|
||||
// TODO handle overwrite stack order here
|
||||
String stackType = ab.getStackType();
|
||||
@@ -1927,7 +1927,7 @@ public enum PowersManager {
|
||||
if (trains < ab.getMinTrains() || trains > ab.getMaxTrains())
|
||||
continue;
|
||||
// If something blocks the action, then stop
|
||||
if (ab.blocked(target, pb, trains, null))
|
||||
if (ab.blocked(target, pb, trains, ac))
|
||||
// sendPowerMsg(pc, 5, msg);
|
||||
continue;
|
||||
// TODO handle overwrite stack order here
|
||||
|
||||
@@ -239,6 +239,7 @@ public class ActionsBase {
|
||||
|
||||
//Add blocked types here
|
||||
public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) {
|
||||
|
||||
if (AbstractWorldObject.IsAbstractCharacter(awo)) {
|
||||
AbstractCharacter target = (AbstractCharacter) awo;
|
||||
if(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){
|
||||
@@ -250,6 +251,7 @@ public class ActionsBase {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(pb.isChant)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user