本文整理汇总了C#中HRSim.Playfield.minionGetDestroyed方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetDestroyed方法的具体用法?C# Playfield.minionGetDestroyed怎么用?C# Playfield.minionGetDestroyed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetDestroyed方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onTurnEndsTrigger
// ansturm/. vernichtet diesen diener am ende des zuges.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
p.minionGetDestroyed(triggerEffectMinion);
}
}
示例2: onCardPlay
//Vernichtet einen Diener. Stellt bei Eurem Helden #3 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetDestroyed(target);
int heal = p.getSpellHeal(3, ownplay);
p.minionGetDamageOrHeal(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, -heal);
}
示例3: onTurnStartTrigger
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if(turnStartOfOwner != triggerEffectMinion.own) return;
List<Minion> temp = (turnStartOfOwner) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
int anz =0;
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL && m.Hp >=1 )
{
anz++;
}
}
if (anz >= 3)
{
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL)
{
p.minionGetDestroyed(m);
}
}
int pos = (triggerEffectMinion.own) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, pos, triggerEffectMinion.own,false, true); // we allow to summon one minion more (because 3 are destroyed)
}
}
示例4: onCardPlay
// vernichtet einen diener und bringt ihn dann mit vollem leben wieder auf das schlachtfeld zurück.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
bool own = target.own;
int place = target.zonepos;
CardDB.Card d = target.handcard.card;
p.minionGetDestroyed(target);
p.callKid(d, place, own);
}
示例5: onTurnEndsTrigger
// At the end of each turn, destroy this minion if it's your only one.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own)
{
if (p.playerFirst.ownMinions.Count == 1)
{
p.minionGetDestroyed(triggerEffectMinion);
}
}
else
{
if (p.playerSecond.ownMinions.Count == 1)
{
p.minionGetDestroyed(triggerEffectMinion);
}
}
}
示例6: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (target != null)
{
p.minionGetDestroyed(target);
p.minionGetBuffed(own, 2, 2);
}
}
示例7: onCardPlay
// vernichtet einen zufälligen feindlichen diener.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp2 = (ownplay) ? new List<Minion>(p.playerSecond.ownMinions) : new List<Minion>(p.playerFirst.ownMinions);
temp2.Sort((a, b) => a.Angr.CompareTo(b.Angr));
foreach (Minion enemy in temp2)
{
p.minionGetDestroyed(enemy);
break;
}
}
示例8: onTurnStartTrigger
// vernichtet zu beginn eures zuges diesen diener und zieht 3 karten.
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (turnStartOfOwner == triggerEffectMinion.own)
{
p.minionGetDestroyed(triggerEffectMinion);
p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
p.drawACard(p.getArandomCardFromDeck(turnStartOfOwner), turnStartOfOwner);
}
}
示例9: onDeathrattle
// Deathrattle: Destroy the minions next to this one as well.
public override void onDeathrattle(Playfield p, Minion m)
{
List<Minion> temp = (m.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
foreach (Minion mnn in temp)
{
if (mnn.zonepos == m.zonepos + 1 || mnn.zonepos + 1 == m.zonepos)
{
p.minionGetDestroyed(mnn);
}
}
}
示例10: onCardPlay
// Destroy a random enemy minion. Combo: And your opponent's weapon.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay)? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
if (temp.Count >= 1)
{
// Drew: Null check for searchRandomMinion.
var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
if (found != null)
{
p.minionGetDestroyed(found);
}
}
if (p.playerFirst.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
}
示例11: getBattlecryEffect
//todo list
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
List<Minion> temp2 = (own.own) ? new List<Minion>(p.playerSecond.ownMinions) : new List<Minion>(p.playerFirst.ownMinions);
temp2.Sort((a, b) => a.Hp.CompareTo(b.Hp));//destroys the weakest
foreach (Minion enemy in temp2)
{
if (enemy.Angr <= 2)
{
p.minionGetDestroyed(enemy);
break;
}
}
}
示例12: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetDestroyed(target);
}
示例13: onCardPlay
// vernichtet einen diener. euer gegner zieht 2 karten.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetDestroyed(target);
p.drawACard(p.getArandomCardFromDeck(!ownplay), !ownplay);
p.drawACard(p.getArandomCardFromDeck(!ownplay), !ownplay);
}
示例14: onSecretPlay
//todo secret
// geheimnis:/ wenn ein diener euren helden angreift, wird er vernichtet.
public override void onSecretPlay(Playfield p, bool ownplay, Minion target, int number)
{
p.minionGetDestroyed(target);
}
示例15: getBattlecryEffect
// Battlecry: If you're holding a Dragon, destroy a Legendary minion.
public override void getBattlecryEffect(Playfield p, Minion m, Minion target, int choice)
{
if (target != null) p.minionGetDestroyed(target);
}