本文整理汇总了C#中HREngine.Bots.Playfield.minionGetTempBuff方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetTempBuff方法的具体用法?C# Playfield.minionGetTempBuff怎么用?C# Playfield.minionGetTempBuff使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetTempBuff方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// verleiht euren charakteren +2 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
foreach (Minion t in temp)
{
p.minionGetTempBuff(t, 2, 0);
}
p.minionGetTempBuff(ownplay ? p.ownHero : p.enemyHero, 2, 0);
}
示例2: onCardPlay
// verleiht eurem helden +4 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
p.minionGetTempBuff(p.ownHero, 4, 0);
}
else
{
p.minionGetTempBuff(p.enemyHero, 4, 0);
}
}
示例3: onCardIsGoingToBePlayed
// erhält jedes mal +2 angriff in diesem zug, wenn ihr einen zauber wirkt.
public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool wasOwnCard, Minion triggerEffectMinion, Minion target)
{
if (triggerEffectMinion.own == wasOwnCard && c.type == CardDB.cardtype.SPELL)
{
p.minionGetTempBuff(triggerEffectMinion, 2, 0);
}
}
示例4: getBattlecryEffect
// Your Mechs cost (1) less.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (target != null)
{
p.minionGetTempBuff(target, -2, 0);
}
}
示例5: onCardPlay
// Restore #4 Health to your hero and gain +2 Attack this turn.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
int heal = p.getSpellHeal(4);
p.minionGetDamageOrHeal(p.ownHero, -heal);
p.minionGetTempBuff(p.ownHero, 2, 0);
}
else
{
int heal = p.getEnemySpellHeal(4);
p.minionGetDamageOrHeal(p.enemyHero, -heal);
p.minionGetTempBuff(p.enemyHero, 2, 0);
}
}
示例6: onCardPlay
// verleiht euren charakteren +2 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
for (int i = 0; i < temp.Count; i++)
{
p.minionGetTempBuff(temp[i], 2, 0);
}
if (ownplay)
{
p.minionGetTempBuff(p.ownHero, 2, 0);
}
else
{
p.minionGetTempBuff(p.enemyHero, 2, 0);
}
}
示例7: doSomeBasicEnemyAi
//.........这里部分代码省略.........
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardIDEnum.None, false);
}
}
break;
}
// spawn new minion when he have illidan
case CardDB.cardName.illidanstormrage:
if (p.enemyAnzCards >= 1)
{
p.callKid(flame, p.enemyMinions.Count, false);
}
break;
//buff his questingadventurer
case CardDB.cardName.questingadventurer:
if (p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 1);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 1);
}
}
break;
//buff his manaaddict
case CardDB.cardName.manaaddict:
if (p.enemyAnzCards >= 1)
{
p.minionGetTempBuff(m, 2, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetTempBuff(m, 2, 0);
}
}
break;
case CardDB.cardName.manawyrm:
if (p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 0);
}
}
break;
case CardDB.cardName.tinyknightofevil:
case CardDB.cardName.crowdfavorite:
case CardDB.cardName.secretkeeper:
case CardDB.cardName.unboundelemental:
if (p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 1);
}
break;
case CardDB.cardName.murloctidecaller:
case CardDB.cardName.undertaker:
if (p.enemyAnzCards >= 2)
{
示例8: onCardPlay
// fügt einem diener $1 schaden zu. der diener erhält +2 angriff.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(1) : p.getEnemySpellDamageDamage(1);
p.minionGetDamageOrHeal(target, dmg);
p.minionGetTempBuff(target, 2,0);
}
示例9: doSomeBasicEnemyAi
private void doSomeBasicEnemyAi(Playfield p)
{
foreach (Minion m in p.enemyMinions)
{
if(m.silenced) continue;
if (p.enemyAnzCards >= 2 && (m.name == CardDB.cardName.gadgetzanauctioneer || m.name == CardDB.cardName.starvingbuzzard))
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardName.unknown, false);
}
}
if (m.name == CardDB.cardName.northshirecleric)
{
int anz = 0;
foreach (Minion mnn in p.enemyMinions)
{
if (mnn.wounded) anz++;
}
anz = Math.Min(anz, 3);
for (int i = 0; i < anz; i++)
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardName.unknown, false);
}
}
}
if (m.name == CardDB.cardName.illidanstormrage && p.enemyAnzCards>=1)
{
p.callKid(flame, p.enemyMinions.Count, false);
}
if (m.name == CardDB.cardName.questingadventurer && p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 1);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >=5)
{
p.minionGetBuffed(m, 1, 1);
}
}
if (m.name == CardDB.cardName.manaaddict && p.enemyAnzCards >= 1)
{
p.minionGetTempBuff(m, 2, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetTempBuff(m, 2, 0);
}
}
if (m.name == CardDB.cardName.manawyrm && p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 0);
}
}
if (m.name == CardDB.cardName.secretkeeper && p.enemyAnzCards >= 3)
{
p.minionGetBuffed(m, 1, 1);
}
if (m.name == CardDB.cardName.unboundelemental && p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 1);
}
if (m.name == CardDB.cardName.murloctidecaller && p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 0);
}
if (m.name == CardDB.cardName.undertaker && p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 1);
}
if (m.name == CardDB.cardName.frothingberserker && p.enemyMinions.Count + p.ownMinions.Count >= 3)
{
p.minionGetBuffed(m, 1, 0);
}
if (m.name == CardDB.cardName.gurubashiberserker && m.Hp>=5 && p.enemyAnzCards >=3)
{
p.minionGetBuffed(m, 3, 0);
}
if (m.name == CardDB.cardName.lightwarden)
{
int anz = 0;
foreach (Minion mnn in p.enemyMinions)
{
if (mnn.wounded) anz++;
}
if (p.enemyHero.wounded) anz++;
if (anz >= 2) p.minionGetBuffed(m, 2, 0);
//.........这里部分代码省略.........
示例10: onCardPlay
// verleiht einem wildtier +2 angriff und immunität/ in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetTempBuff(target, 2, 0);
target.immune = true;
}
示例11: doSomeBasicEnemyAi
private void doSomeBasicEnemyAi(Playfield p)
{
if (p.enemyHeroName == HeroEnum.mage)
{
if (sf.Probabilitymaker.enemyCardsPlayed.ContainsKey(CardDB.cardIDEnum.EX1_561)) p.ownHero.Hp = Math.Max(5, p.ownHero.Hp - 7);
}
//play some cards (to not overdraw)
if (p.enemyAnzCards >= 8)
{
p.enemyAnzCards--;
p.triggerCardsChanged(false);
}
if (p.enemyAnzCards >= 4)
{
p.enemyAnzCards--;
p.triggerCardsChanged(false);
}
if (p.enemyAnzCards >= 2)
{
p.enemyAnzCards--;
p.triggerCardsChanged(false);
}
//int i = 0;
//int count = 0;
foreach (Minion m in p.enemyMinions.ToArray())
{
if (m.silenced) continue;
if (p.enemyAnzCards >= 2 && (m.name == CardDB.cardName.gadgetzanauctioneer || m.name == CardDB.cardName.starvingbuzzard))
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardName.unknown, false);
}
}
if (m.name == CardDB.cardName.northshirecleric)
{
int anz = 0;
foreach (Minion mnn in p.enemyMinions)
{
if (mnn.wounded) anz++;
}
anz = Math.Min(anz, 3);
for (int i = 0; i < anz; i++)
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardName.unknown, false);
}
}
}
if (m.name == CardDB.cardName.illidanstormrage && p.enemyAnzCards >= 1)
{
p.callKid(flame, p.enemyMinions.Count, false);
}
if (m.name == CardDB.cardName.questingadventurer && p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 1);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 1);
}
}
if (m.name == CardDB.cardName.manaaddict && p.enemyAnzCards >= 1)
{
p.minionGetTempBuff(m, 2, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetTempBuff(m, 2, 0);
}
}
if (m.name == CardDB.cardName.manawyrm && p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 0);
}
}
if (m.name == CardDB.cardName.secretkeeper && p.enemyAnzCards >= 3)
{
p.minionGetBuffed(m, 1, 1);
}
if (m.name == CardDB.cardName.unboundelemental && p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 1);
}
if (m.name == CardDB.cardName.murloctidecaller && p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 0);
//.........这里部分代码省略.........
示例12: onInspire
//insprire: gain Spell Damage +1
public override void onInspire(Playfield p, Minion m)
{
p.minionGetTempBuff((m.own) ? p.ownHero : p.enemyHero, 2, 0);
}
示例13: doSomeBasicEnemyAi
//.........这里部分代码省略.........
{
if (p.enemyDeckSize >= 1)
{
p.drawACard(CardDB.cardIDEnum.None, false);
}
}
break;
}
// spawn new minion when he have illidan
case CardDB.cardName.illidanstormrage:
if (p.enemyAnzCards >= 1)
{
p.callKid(flame, p.enemyMinions.Count, false);
}
break;
//buff his questingadventurer
case CardDB.cardName.questingadventurer:
if (p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 1);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 1);
}
}
break;
//buff his manaaddict
case CardDB.cardName.manaaddict:
if (p.enemyAnzCards >= 1)
{
p.minionGetTempBuff(m, 2, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetTempBuff(m, 2, 0);
}
}
break;
case CardDB.cardName.manawyrm:
if (p.enemyAnzCards >= 1)
{
p.minionGetBuffed(m, 1, 0);
if (p.enemyAnzCards >= 3 && p.enemyMaxMana >= 5)
{
p.minionGetBuffed(m, 1, 0);
}
}
break;
case CardDB.cardName.tinyknightofevil:
case CardDB.cardName.crowdfavorite:
case CardDB.cardName.secretkeeper:
case CardDB.cardName.unboundelemental:
if (p.enemyAnzCards >= 2)
{
p.minionGetBuffed(m, 1, 1);
}
break;
case CardDB.cardName.murloctidecaller:
case CardDB.cardName.undertaker:
if (p.enemyAnzCards >= 2)
{