Program: 8899
Project: 8899
Buggy source:
@Override protected boolean isActive(TriggerGenericData trigger){
  boolean result=super.isActive(trigger);
  if (result) {
    return result;
  }
  float target=0;
  result=false;
  TriggerGeneric.TargetType targetType=trigger.getType();
switch (targetType) {
case AP_CONGREGATE_IN:
    return false;
case AP_CLAIM_PART_OF:
  return false;
case AP_CLAIM_ALL_OF:
return false;
case AP_SLAP_TYPES:
return false;
case AP_TAG_PART_OF:
return false;
case AP_TAG_ALL_OF:
return false;
case AP_POSESSED_CREATURE_ENTERS:
return false;
}
TriggerGeneric.ComparisonType comparisonType=trigger.getComparison();
if (comparisonType != null && comparisonType != TriggerGeneric.ComparisonType.NONE) {
result=compare(target,comparisonType,(int)trigger.getUserData("String_Node_Str"));
}
return result;
}

Fixed version (ground truth):
@Override protected boolean isActive(TriggerGenericData trigger){
  boolean result=super.isActive(trigger);
  if (checked) {
    return result;
  }
  int target=0;
  int value=0;
  ActionPoint ap=(ActionPoint)parent;
  TriggerGeneric.TargetType targetType=trigger.getType();
switch (targetType) {
case AP_CONGREGATE_IN:
    short playerId=trigger.getUserData("String_Node_Str",short.class);
  short targetId=trigger.getUserData("String_Node_Str",short.class);
value=trigger.getUserData("String_Node_Str",int.class);
short type=trigger.getUserData("String_Node_Str",short.class);
switch (type) {
case 0:
case 3:
break;
case 6:
break;
default :
logger.log(Level.WARNING,"String_Node_Str",type);
break;
}
return false;
case AP_POSESSED_CREATURE_ENTERS:
playerId=trigger.getUserData("String_Node_Str",short.class);
targetId=trigger.getUserData("String_Node_Str",short.class);
value=trigger.getUserData("String_Node_Str",int.class);
type=trigger.getUserData("String_Node_Str",short.class);
switch (type) {
case 3:
break;
case 6:
break;
default :
logger.warning("String_Node_Str");
break;
}
return false;
case AP_CLAIM_PART_OF:
playerId=trigger.getUserData("String_Node_Str",short.class);
value=trigger.getUserData("String_Node_Str",int.class);
MapData map=stateManager.getState(WorldState.class).getMapData();
for (int x=(int)ap.getStart().x; x <= (int)ap.getEnd().x; x++) {
for (int y=(int)ap.getStart().y; y <= (int)ap.getEnd().y; y++) {
if (playerId == map.getTile(x,y).getPlayerId()) {
target++;
}
}
}
break;
case AP_CLAIM_ALL_OF:
playerId=trigger.getUserData("String_Node_Str",short.class);
map=stateManager.getState(WorldState.class).getMapData();
for (int x=(int)ap.getStart().x; x <= (int)ap.getEnd().x; x++) {
for (int y=(int)ap.getStart().y; y <= (int)ap.getEnd().y; y++) {
if (playerId != map.getTile(x,y).getPlayerId()) {
return false;
}
}
}
return true;
case AP_SLAB_TYPES:
playerId=trigger.getUserData("String_Node_Str",short.class);
targetId=trigger.getUserData("String_Node_Str",short.class);
value=trigger.getUserData("String_Node_Str",int.class);
map=stateManager.getState(WorldState.class).getMapData();
for (int x=(int)ap.getStart().x; x <= (int)ap.getEnd().x; x++) {
for (int y=(int)ap.getStart().y; y <= (int)ap.getEnd().y; y++) {
TileData tile=map.getTile(x,y);
if (playerId != 0 && playerId != tile.getPlayerId() || targetId != tile.getTerrainId()) {
continue;
}
target++;
}
}
break;
case AP_TAG_PART_OF:
value=trigger.getUserData("String_Node_Str",int.class);
map=stateManager.getState(WorldState.class).getMapData();
for (int x=(int)ap.getStart().x; x <= (int)ap.getEnd().x; x++) {
for (int y=(int)ap.getStart().y; y <= (int)ap.getEnd().y; y++) {
if (map.getTile(x,y).isSelected()) {
target++;
}
}
}
break;
case AP_TAG_ALL_OF:
map=stateManager.getState(WorldState.class).getMapData();
for (int x=(int)ap.getStart().x; x <= (int)ap.getEnd().x; x++) {
for (int y=(int)ap.getStart().y; y <= (int)ap.getEnd().y; y++) {
if (!map.getTile(x,y).isSelected()) {
return false;
}
}
}
return true;
default :
logger.warning("String_Node_Str");
return false;
}
TriggerGeneric.ComparisonType comparisonType=trigger.getComparison();
if (comparisonType != null && comparisonType != TriggerGeneric.ComparisonType.NONE) {
result=compare(target,comparisonType,value);
}
return result;
}