Commit 684ac7e1 authored by mercury233's avatar mercury233

fix OnSelectEffectYn missing desc

parent 046c0bec
......@@ -371,7 +371,7 @@ namespace WindBot.Game
{
foreach (CardExecutor exec in Executor.Executors)
{
if (ShouldExecute(exec, card, ExecutorType.Activate))
if (ShouldExecute(exec, card, ExecutorType.Activate, desc))
return true;
}
return false;
......
......@@ -1115,6 +1115,14 @@ namespace WindBot.Game
packet.ReadByte();
int desc = packet.ReadInt32();
if (desc == 0 || desc == 221)
{
// 0: phase trigger effect
// 221: trigger effect
// for compatibility
desc = -1;
}
ClientCard card = _duel.GetCard(player, loc, seq);
if (card == null)
{
......
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