forked from MagicBane/Server
PVE flag
This commit is contained in:
@@ -1932,7 +1932,7 @@ public enum PowersManager {
|
||||
|
||||
if (ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
|
||||
PlayerCharacter pc = (PlayerCharacter) ac;
|
||||
if (pc.isBoxed) {
|
||||
if (pc.isBoxed && pb.token != -2133617927) {
|
||||
if(AbstractCharacter.IsAbstractCharacter(target)){
|
||||
if (target.getObjectType().equals(GameObjectType.PlayerCharacter)){
|
||||
return;
|
||||
@@ -2023,9 +2023,7 @@ public enum PowersManager {
|
||||
public static void runPowerAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, ActionsBase ab, int trains, PowersBase pb) {
|
||||
AbstractPowerAction pa = ab.getPowerAction();
|
||||
if (pa == null) {
|
||||
Logger.error(
|
||||
"runPowerAction(): PowerAction not found of IDString: "
|
||||
+ ab.getEffectID());
|
||||
Logger.error("runPowerAction(): PowerAction not found of IDString: " + ab.getEffectID());
|
||||
return;
|
||||
}
|
||||
pa.startAction(source, awo, targetLoc, trains, ab, pb);
|
||||
|
||||
Reference in New Issue
Block a user