Skip to content

Commit

Permalink
Applied patch e4b1bde
Browse files Browse the repository at this point in the history
  • Loading branch information
5GameMaker authored Sep 17, 2024
1 parent 88e0278 commit 7956a14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions core/src/mindustry/logic/LExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,7 @@ public void run(LExecutor exec) {
LogicAI ai = null;

if (base instanceof Ranged r && (exec.privileged || r.team() == exec.team) &&
(base instanceof Building || (ai = UnitControlI.checkLogicAI(exec, base)) != null)) { // must be a
// building or
// a
// controllable
// unit
((base instanceof Building b && (!b.block.privileged || exec.privileged)) || (ai = UnitControlI.checkLogicAI(exec, base)) != null)) { // must be a building or a controllable unit
float range = r.range();

Healthc targeted;
Expand Down Expand Up @@ -1117,7 +1113,7 @@ public PrintFlushI() {
@Override
public void run(LExecutor exec) {

if (exec.building(target) instanceof MessageBuild d && (d.team == exec.team || exec.privileged)) {
if (exec.building(target) instanceof MessageBuild d && (exec.privileged || (d.team == exec.team && !d.block..privileged))) {

d.message.setLength(0);
d.message.append(exec.textBuffer, 0, Math.min(exec.textBuffer.length(), maxTextBuffer));
Expand Down

0 comments on commit 7956a14

Please sign in to comment.