Commit e122ed32 authored by xiaoye's avatar xiaoye

Revert "Merge branch 'master' of https://code.moenext.com/mycard/windbot"

This reverts commit 75aa85de, reversing
changes made to 3175207d.
parent 3359b06f
Pipeline #31533 failed with stages
in 58 seconds
......@@ -177,22 +177,6 @@ namespace WindBot.Game.AI.Decks
return null;
}
public override void OnSpSummoned()
{
// not special summoned by chain
if (Duel.GetCurrentSolvingChainCard() == null)
{
foreach (ClientCard card in Duel.LastSummonedCards)
{
if (card.Controller == 0 && card.IsCode(CardId.AlternativeWhiteDragon))
{
AlternativeWhiteDragonSummoned = true;
}
}
}
base.OnSpSummoned();
}
private bool DragonShrineEffect()
{
AI.SelectCard(
......@@ -517,6 +501,7 @@ namespace WindBot.Game.AI.Decks
private bool AlternativeWhiteDragonSummon()
{
AlternativeWhiteDragonSummoned = true;
return true;
}
......
......@@ -237,16 +237,6 @@ namespace WindBot.Game.AI
return 0;
}
/// <summary>
/// Called when card is successfully special summoned.
/// Used on monsters that can only special summoned once per turn.
/// </summary>
public virtual void OnSpSummoned()
{
// For overriding
return;
}
public void SetMain(MainPhase main)
{
Main = main;
......
......@@ -164,15 +164,6 @@ namespace WindBot.Game
{
Executor.OnChainSolved(chainIndex);
}
/// <summary>
/// Called when card is successfully special summoned.
/// Used on monsters that can only special summoned once per turn.
/// </summary>
public void OnSpSummoned()
{
Executor.OnSpSummoned();
}
/// <summary>
/// Called when a chain has been solved.
......
......@@ -27,7 +27,7 @@ namespace WindBot.Game
private Room _room;
private Duel _duel;
private int _hand;
private bool _debug;
private bool _debug;
private int _select_hint;
private GameMessage _lastMessage;
......@@ -1971,7 +1971,6 @@ namespace WindBot.Game
card.IsSpecialSummoned = true;
_duel.LastSummonedCards.Add(card);
}
_ai.OnSpSummoned();
_duel.SummoningCards.Clear();
}
......
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