Commit 5f2de667 authored by mercury233's avatar mercury233

facedownmonstername

parent 40c67360
using System; using System;
using System.IO; using System.IO;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.Serialization; using System.Runtime.Serialization;
...@@ -20,6 +20,8 @@ namespace WindBot.Game.AI ...@@ -20,6 +20,8 @@ namespace WindBot.Game.AI
[DataMember] [DataMember]
public string[] attack { get; set; } public string[] attack { get; set; }
[DataMember] [DataMember]
public string facedownmonstername { get; set; }
[DataMember]
public string[] activate { get; set; } public string[] activate { get; set; }
[DataMember] [DataMember]
public string[] summon { get; set; } public string[] summon { get; set; }
...@@ -37,6 +39,7 @@ namespace WindBot.Game.AI ...@@ -37,6 +39,7 @@ namespace WindBot.Game.AI
private string[] _endturn; private string[] _endturn;
private string[] _directattack; private string[] _directattack;
private string[] _attack; private string[] _attack;
private string _facedownmonstername;
private string[] _activate; private string[] _activate;
private string[] _summon; private string[] _summon;
private string[] _setmonster; private string[] _setmonster;
...@@ -54,6 +57,7 @@ namespace WindBot.Game.AI ...@@ -54,6 +57,7 @@ namespace WindBot.Game.AI
_endturn = data.endturn; _endturn = data.endturn;
_directattack = data.directattack; _directattack = data.directattack;
_attack = data.attack; _attack = data.attack;
_facedownmonstername = data.facedownmonstername;
_activate = data.activate; _activate = data.activate;
_summon = data.summon; _summon = data.summon;
_setmonster = data.setmonster; _setmonster = data.setmonster;
...@@ -83,6 +87,10 @@ namespace WindBot.Game.AI ...@@ -83,6 +87,10 @@ namespace WindBot.Game.AI
public void SendAttack(string attacker, string defender) public void SendAttack(string attacker, string defender)
{ {
if (defender=="monster")
{
defender = _facedownmonstername;
}
InternalSendMessage(_attack, attacker, defender); InternalSendMessage(_attack, attacker, defender);
} }
......
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