本文整理汇总了C#中HREngine.Bots.Playfield.getMinionHeal方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getMinionHeal方法的具体用法?C# Playfield.getMinionHeal怎么用?C# Playfield.getMinionHeal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.getMinionHeal方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getBattlecryEffect
//Battlecry: Reveal a minion in each deck. If yours costs more, restore 7 Health to your hero.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (p.isServer)
{
//TODO
int heal = (own.own) ? p.getMinionHeal(7) : p.getEnemyMinionHeal(7);
p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal);
return;
}
int heal2 = (own.own) ? p.getMinionHeal(7) : p.getEnemyMinionHeal(7);
p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal2);
}
示例2: getBattlecryEffect
//Battlecry: Restore 4 Health to each hero
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int heal2 = (own.own) ? p.getMinionHeal(4) : p.getEnemyMinionHeal(4);
p.minionGetDamageOrHeal(own.own ? p.ownHero : p.enemyHero, -heal2);
p.minionGetDamageOrHeal(own.own ? p.enemyHero : p.ownHero, -heal2);
}
示例3: onTurnStartTrigger
// <deDE>Stellt zu Beginn Eures Zuges bei einem verletzten befreundeten Charakter 3 Leben wieder her.</deDE>
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (turnStartOfOwner == triggerEffectMinion.own)
{
int heal = (turnStartOfOwner) ? p.getMinionHeal(3) : p.getEnemyMinionHeal(3);
List<Minion> temp = (turnStartOfOwner) ? p.ownMinions : p.enemyMinions;
if (temp.Count >= 1)
{
bool healed = false;
foreach (Minion mins in temp)
{
if (mins.wounded)
{
p.minionGetDamageOrHeal(mins, -heal);
healed = true;
break;
}
}
if (!healed)
{
if (turnStartOfOwner) p.minionGetDamageOrHeal(p.ownHero, -heal);
else p.minionGetDamageOrHeal(p.enemyHero, -heal);
}
}
else
{
if (turnStartOfOwner) p.minionGetDamageOrHeal(p.ownHero, -heal);
else p.minionGetDamageOrHeal(p.enemyHero, -heal);
}
}
}
示例4: getBattlecryEffect
//Battlecry: If your C'Thun has at least 10 Attack, restore 10 Health to your hero.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own && (p.anzOgOwnCThunAngrBonus + 6) > 9)
{
p.minionGetDamageOrHeal(p.ownHero, -p.getMinionHeal(10));
}
}
示例5: onTurnEndsTrigger
// stellt am ende eures zuges bei einem verletzten charakter 6 leben wieder her.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
Minion tm = null;
int hl = (triggerEffectMinion.own) ? p.getMinionHeal(6) : p.getEnemyMinionHeal(6);
int heal = 0;
foreach (Minion m in p.ownMinions)
{
if (m.maxHp - m.Hp > heal)
{
tm = m;
heal = m.maxHp - m.Hp;
}
}
foreach (Minion m in p.enemyMinions)
{
if (m.maxHp - m.Hp > heal)
{
tm = m;
heal = m.maxHp - m.Hp;
}
}
if (heal >= 1)
{
p.minionGetDamageOrHeal(tm, -hl);
}
else
{
p.minionGetDamageOrHeal(p.ownHero.Hp < 30 ? p.ownHero : p.enemyHero, -hl);
}
}
}
示例6: onTurnEndsTrigger
// stellt am ende eures zuges bei allen befreundeten dienern 1 leben wieder her.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
int heal = (triggerEffectMinion.own) ? p.getMinionHeal(1) : p.getEnemyMinionHeal(1);
p.allMinionOfASideGetDamage(turnEndOfOwner, -heal);
}
}
示例7: onTurnStartTrigger
// stellt zu beginn eures zuges das volle leben dieses dieners wieder her.
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (triggerEffectMinion.own == turnStartOfOwner)
{
int heal = (triggerEffectMinion.own) ? p.getMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp) : p.getEnemyMinionHeal(triggerEffectMinion.maxHp - triggerEffectMinion.Hp);
p.minionGetDamageOrHeal(triggerEffectMinion, -heal);
}
}
示例8: onTurnEndsTrigger
// if you control a Secret at the end of your turn, restore 4 health to your hero.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
if (((turnEndOfOwner) ? p.ownSecretsIDList.Count : p.enemySecretList.Count) >= 1)
{
int heal = (turnEndOfOwner) ? p.getMinionHeal(4) : p.getEnemyMinionHeal(4);
p.minionGetDamageOrHeal(((turnEndOfOwner) ? p.ownHero : p.enemyHero), -heal, true);
}
}
}
示例9: getBattlecryEffect
//Zieht 2 Karten; oder stellt 5 Leben wieder her
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 2)
{
int heal = (own.own) ? p.getMinionHeal(5) : p.getEnemyMinionHeal(5);
p.minionGetDamageOrHeal(target, -heal);
}
else
{
p.drawACard(CardDB.cardIDEnum.None, own.own);
p.drawACard(CardDB.cardIDEnum.None, own.own);
}
}
示例10: getBattlecryEffect
// kampfschrei:/ stellt bei eurem helden 6 leben wieder her.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int heal = (own.own) ? p.getMinionHeal(6) : p.getEnemyMinionHeal(6);
if (own.own)
{
p.minionGetDamageOrHeal(p.ownHero, -heal);
}
else
{
p.minionGetDamageOrHeal(p.enemyHero, -heal);
}
}
示例11: onTurnEndsTrigger
// At the end of your turn, restore 4 Health to your hero.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
if (triggerEffectMinion.own)
{
int heal = p.getMinionHeal(4);
p.minionGetDamageOrHeal(p.ownHero, -heal, true);
}
else
{
int heal = p.getEnemyMinionHeal(4);
p.minionGetDamageOrHeal(p.enemyHero, -heal, true);
}
}
}
示例12: getBattlecryEffect
// kampfschrei:/ stellt 2 leben wieder her.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int heal = (own.own) ? p.getMinionHeal(2) : p.getEnemyMinionHeal(2);
p.minionGetDamageOrHeal(target, -heal);
}
示例13: onInspire
//Inspire: Gain +1 Health.
public override void onInspire(Playfield p, Minion m)
{
int heal = (m.own) ? p.getMinionHeal(2) : p.getEnemyMinionHeal(2);
p.minionGetDamageOrHeal(m.own ? p.ownHero : p.enemyHero, -heal);
}