Commit 5f21679f authored by mercury233's avatar mercury233

fix

parent b2d9b3ec
......@@ -28,6 +28,7 @@
],
"ondirectattack": [
"别开玩笑了~。你这种人,就让我把你和英吉利牛肉一起冷冻保存好了!!",
"一只小小的{0},有什么可怕!",
"笨蛋是不会感冒的!"
],
"facedownmonstername": "怪兽",
......
......@@ -37,6 +37,7 @@
],
"ondirectattack": [
"Ahhhhh...",
"Just {0} ...",
"Think you can defeat me?"
],
"activate": [
......
......@@ -40,6 +40,7 @@
],
"ondirectattack": [
"可恶……",
"不过是{0}而已!",
"你以为这样就能打倒我吗?"
],
"facedownmonstername": "怪兽",
......
......@@ -359,7 +359,7 @@ namespace WindBot.Game
private void OnAttack(BinaryReader packet)
{
int ca = packet.ReadByte();
int ca = GetLocalPlayer(packet.ReadByte());
int la = packet.ReadByte();
int sa = packet.ReadByte();
packet.ReadByte(); //
......@@ -368,11 +368,10 @@ namespace WindBot.Game
packet.ReadByte(); // sd
packet.ReadByte(); //
// ClientCard attackcard = _duel.GetCard(ca, (CardLocation)la, sa);
if (ld == 0)
ClientCard attackcard = _duel.GetCard(ca, (CardLocation)la, sa);
if (ld == 0 && (attackcard != null) && (ca != 0))
{
_ai.OnDirectAttack();
_ai.OnDirectAttack(attackcard);
}
}
......
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