mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 11:57:35 +00:00
Fix bug in quest cond state not equal (#2393)
* Fix bug in ConditionStateNotEqual.java * Do the same fix for ConditionStateEqual.java
This commit is contained in:
parent
cf574e99cb
commit
cab3bfb5a7
@ -20,6 +20,9 @@ public class ConditionStateEqual extends BaseCondition {
|
||||
var questStateValue = condition.getParam()[1];
|
||||
var checkQuest = owner.getQuestManager().getQuestById(questId);
|
||||
|
||||
return checkQuest != null && checkQuest.getState().getValue() == questStateValue;
|
||||
if (checkQuest == null) {
|
||||
return questStateValue == 0;
|
||||
}
|
||||
return checkQuest.getState().getValue() == questStateValue;
|
||||
}
|
||||
}
|
||||
|
@ -20,6 +20,9 @@ public class ConditionStateNotEqual extends BaseCondition {
|
||||
var questStateValue = condition.getParam()[1];
|
||||
var checkQuest = owner.getQuestManager().getQuestById(questId);
|
||||
|
||||
return checkQuest != null && checkQuest.getState().getValue() != questStateValue;
|
||||
if (checkQuest == null) {
|
||||
return questStateValue != 0;
|
||||
}
|
||||
return checkQuest.getState().getValue() != questStateValue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user