本文整理汇总了C#中HREngine.Bots.Playfield.minionGetArmor方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetArmor方法的具体用法?C# Playfield.minionGetArmor怎么用?C# Playfield.minionGetArmor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetArmor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// heldenfähigkeit/\nerhaltet 2 rüstung.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
p.minionGetArmor(p.ownHero, 2);
}
else
{
p.minionGetArmor(p.enemyHero, 2);
}
}
示例2: getBattlecryEffect
// Battlecry:</b> Gain 5 Armor.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own)
{
p.minionGetArmor(p.ownHero, 5);
}
else
{
p.minionGetArmor(p.enemyHero, 5);
}
}
示例3: onCardPlay
// erhaltet 5 rüstung. zieht eine karte.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
p.minionGetArmor(p.ownHero, 5);
}
else
{
p.minionGetArmor(p.enemyHero, 5);
}
p.drawACard(CardDB.cardIDEnum.None, ownplay);
}
示例4: onMinionGotDmgTrigger
// erhaltet jedes mal 1 rüstung, wenn ein befreundeter diener schaden erleidet.
public override void onMinionGotDmgTrigger(Playfield p, Minion triggerEffectMinion, bool ownDmgdmin)
{
if (triggerEffectMinion.own == ownDmgdmin)
{
if (triggerEffectMinion.own)
{
p.minionGetArmor(p.ownHero, 1);
}
else
{
p.minionGetArmor(p.enemyHero, 1);
}
}
}
示例5: onMinionGotDmgTrigger
// Whenever a friendly minion takes damage, gain 1 Armor.
public override void onMinionGotDmgTrigger(Playfield p, Minion m, bool ownDmgdmin)
{
if (m.own)
{
for(int i = 0;i< p.tempTrigger.ownMinionsGotDmg;i++)
{
p.minionGetArmor(p.ownHero, 1);
}
}
else
{
for (int i = 0; i < p.tempTrigger.enemyMinionsGotDmg; i++)
{
p.minionGetArmor(p.enemyHero, 1);
}
}
}
示例6: onCardPlay
// Deal $3 damage. Gain 3 Armor.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (target != null)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(3) : p.getEnemySpellDamageDamage(3);
p.minionGetDamageOrHeal(target, dmg);
}
p.minionGetArmor((ownplay) ? p.ownHero : p.enemyHero, 3);
}