Commit b2d9b3ec authored by mercury233's avatar mercury233

fix

parent 40df3388
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
], ],
"ondirectattack": [ "ondirectattack": [
"别开玩笑了~。你这种人,就让我把你和英吉利牛肉一起冷冻保存好了!!", "别开玩笑了~。你这种人,就让我把你和英吉利牛肉一起冷冻保存好了!!",
"一只小小的{0},有什么可怕!",
"笨蛋是不会感冒的!" "笨蛋是不会感冒的!"
], ],
"facedownmonstername": "怪兽", "facedownmonstername": "怪兽",
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
], ],
"ondirectattack": [ "ondirectattack": [
"Ahhhhh...", "Ahhhhh...",
"Just {0} ...",
"Think you can defeat me?" "Think you can defeat me?"
], ],
"activate": [ "activate": [
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
], ],
"ondirectattack": [ "ondirectattack": [
"可恶……", "可恶……",
"不过是{0}而已!",
"你以为这样就能打倒我吗?" "你以为这样就能打倒我吗?"
], ],
"facedownmonstername": "怪兽", "facedownmonstername": "怪兽",
......
...@@ -111,6 +111,10 @@ namespace WindBot.Game.AI ...@@ -111,6 +111,10 @@ namespace WindBot.Game.AI
{ {
InternalSendMessage(_ondirectattack, attacker); InternalSendMessage(_ondirectattack, attacker);
} }
public void SendOnDirectAttack()
{
InternalSendMessage(_ondirectattack);
}
public void SendActivate(string spell) public void SendActivate(string spell)
{ {
......
...@@ -74,6 +74,10 @@ namespace WindBot.Game ...@@ -74,6 +74,10 @@ namespace WindBot.Game
{ {
_dialogs.SendOnDirectAttack(card.Name); _dialogs.SendOnDirectAttack(card.Name);
} }
public void OnDirectAttack()
{
_dialogs.SendOnDirectAttack();
}
/// <summary> /// <summary>
/// Called when a chain is executed. /// Called when a chain is executed.
......
...@@ -368,11 +368,11 @@ namespace WindBot.Game ...@@ -368,11 +368,11 @@ namespace WindBot.Game
packet.ReadByte(); // sd packet.ReadByte(); // sd
packet.ReadByte(); // packet.ReadByte(); //
ClientCard attackcard = _duel.GetCard(ca, (CardLocation)la, sa); // ClientCard attackcard = _duel.GetCard(ca, (CardLocation)la, sa);
if (ld == 0) if (ld == 0)
{ {
_ai.OnDirectAttack(attackcard); _ai.OnDirectAttack();
} }
} }
......
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