mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Adventure Updates
Fix for requiring specific targets for battle objectives. Small corrections to Island / Mountain capital maps
This commit is contained in:
@@ -210,13 +210,20 @@ public class AdventureQuestStage implements Serializable {
|
||||
}
|
||||
else if (this.objective == AdventureQuestController.ObjectiveTypes.Defeat) {
|
||||
{
|
||||
List<String> defeatedTags = Arrays.stream(defeated.getData().questTags).collect(Collectors.toList());
|
||||
for (String targetTag : enemyTags) {
|
||||
if (!defeatedTags.contains(targetTag)) {
|
||||
//Does not count toward objective
|
||||
return status;
|
||||
if (mixedEnemies){
|
||||
List<String> defeatedTags = Arrays.stream(defeated.getData().questTags).collect(Collectors.toList());
|
||||
for (String targetTag : enemyTags) {
|
||||
if (!defeatedTags.contains(targetTag)) {
|
||||
//Does not count toward objective
|
||||
return status;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
if (defeated.getData()!=targetEnemyData)
|
||||
//Does not count
|
||||
return status;
|
||||
}
|
||||
//All tags matched, kill confirmed
|
||||
if (++progress1 >= count1){
|
||||
status = AdventureQuestController.QuestStatus.Complete;
|
||||
|
||||
Reference in New Issue
Block a user