Commit b2d9b3ec authored by mercury233's avatar mercury233

fix

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