mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Bugfix: Apply checks for whether the player can select replies on single "next" replies as well.
This commit is contained in:
@@ -280,8 +280,10 @@ public final class ConversationController {
|
||||
public boolean hasOnlyOneNextReply() {
|
||||
if (currentPhrase.replies == null) return false;
|
||||
if (currentPhrase.replies.length != 1) return false;
|
||||
if (currentPhrase.replies[0].text.equals(ConversationCollection.REPLY_NEXT)) return true;
|
||||
return false;
|
||||
final Reply singleReply = currentPhrase.replies[0];
|
||||
if (!singleReply.text.equals(ConversationCollection.REPLY_NEXT)) return false;
|
||||
if (!canSelectReply(player, singleReply)) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user