Commit 24550e60 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/win' into 'main'

fix win

See merge request mycard/Neos!194
parents 536ed9e6 1ad11117
import { ygopro } from "@/api";
import { matStore } from "@/stores";
import MsgWin = ygopro.StocGameMessage.MsgWin;
export default (win: ygopro.StocGameMessage.MsgWin) => {
export default (win: MsgWin) => {
const player = win.player;
if (matStore.isMe(player)) {
matStore.result = win.type_;
} else {
matStore.result =
win.type_ == MsgWin.ActionType.Win
? MsgWin.ActionType.Defeated
: MsgWin.ActionType.Win;
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment