Peter should check for Saiki alive condition
[wgj58.git] / wgj58.js
index 42f0485de13536a5f19d35ba46c496e6741f782a..ff020d198ff8bf42da5df2d5ac1aa63d543f4dd2 100644 (file)
--- a/wgj58.js
+++ b/wgj58.js
@@ -528,7 +528,7 @@ class NPC_Saiki extends GameNPC {
 
 class NPC_Peter extends GameNPC {
        actionTalk() {
-               if (logic.carlos.alive) {
+               if (logic.saiki.alive) {
                        switch (this.talkcount) {
                                case 0:
                                        logic.gameinterface.talk(new Dialogue( [ { actor: logic.player, text: "Hi Peter! What's up?" },