本文整理汇总了C#中HREngine.Bots.Playfield.minionGetBuffed方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetBuffed方法的具体用法?C# Playfield.minionGetBuffed怎么用?C# Playfield.minionGetBuffed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetBuffed方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onMinionIsSummoned
public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
{
if ((TAG_RACE)summonedMinion.handcard.card.race == TAG_RACE.MECHANICAL)
{
List<Minion> temp = (triggerEffectMinion.own) ? p.ownMinions : p.enemyMinions;
foreach (Minion m in temp)
{
//if we have allready a mechanical, we are buffed
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) return;
}
//we had no mechanical, but now!
if (triggerEffectMinion.own)
{
p.ownWeaponAttack += 2;
p.minionGetBuffed(p.ownHero, 2, 0);
}
else
{
p.enemyWeaponAttack += 2;
p.minionGetBuffed(p.enemyHero, 2, 0);
}
}
}
示例2: onAuraStarts
// Your hero is Immune.
public override void onAuraStarts(Playfield p, Minion own)
{
if (own.own)
{
p.ownHero.immune = true;
if (p.ownWeaponCard.name == CardDB.cardName.runeblade && p.anzOwnHorsemen < 1)
{
int bonus = (p.ownWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
p.minionGetBuffed(p.ownHero, -1 * Math.Min(bonus, p.ownWeaponAttack - 1), 0);
p.ownWeaponAttack = Math.Min(1, p.ownWeaponAttack - bonus);
}
p.anzOwnHorsemen++;
}
else
{
p.enemyHero.immune = true;
if (p.enemyWeaponCard.name == CardDB.cardName.runeblade && p.anzEnemyHorsemen < 1)
{
int bonus = (p.enemyWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
p.minionGetBuffed(p.enemyHero, -1 * Math.Min(bonus, p.enemyWeaponAttack - 1), 0);
p.enemyWeaponAttack = Math.Min(1, p.enemyWeaponAttack - bonus);
}
p.anzEnemyHorsemen++;
}
}
示例3: onTurnEndsTrigger
// At the end of your turn, give another friendly Mech +2/+2.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (turnEndOfOwner == triggerEffectMinion.own)
{
List<Minion> temp = (turnEndOfOwner) ? p.ownMinions : p.enemyMinions;
List<Minion> tempmech = new List<Minion>();
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL)
{
tempmech.Add(m);
}
}
if (tempmech.Count >= 1)
{
if (p.isServer)
{
int random = p.getRandomNumber_SERVER(0, tempmech.Count - 1);
p.minionGetBuffed(tempmech[random], 2, 2);
return;
}
p.minionGetBuffed(p.searchRandomMinion(tempmech, (triggerEffectMinion.own ? Playfield.searchmode.searchLowestHP : Playfield.searchmode.searchHighestHP)), 2, 2);
}
}
}
示例4: onDeathrattle
//todo list
public override void onDeathrattle(Playfield p, Minion m)
{
List<Minion> temp = new List<Minion>();
if (m.own)
{
List<Minion> temp2 = new List<Minion>(p.ownMinions);
temp2.Sort((a, b) => -a.Angr.CompareTo(b.Angr));
temp.AddRange(temp2);
}
else
{
List<Minion> temp2 = new List<Minion>(p.enemyMinions);
temp2.Sort((a, b) => a.Angr.CompareTo(b.Angr));
temp.AddRange(temp2);
}
if (temp.Count >= 1)
{
if (m.own)
{
Minion target = temp[0];
if (temp.Count >= 2 && target.taunt && !temp[1].taunt) target = temp[1];
p.minionGetBuffed(target, 0, 3);
}
else
{
Minion target = temp[0];
if (temp.Count >= 2 && !target.taunt && temp[1].taunt) target = temp[1];
p.minionGetBuffed(target, 0, 3);
}
}
}
示例5: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
bool hasmech = false;
foreach (Minion m in temp)
{
//if we have allready a mechanical, we are buffed
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) hasmech=true;
}
if (hasmech)
{
if (ownplay)
{
p.ownWeaponAttack += 2;
p.minionGetBuffed(p.ownHero, 2, 0);
}
else
{
p.enemyWeaponAttack += 2;
p.minionGetBuffed(p.enemyHero, 2, 0);
}
}
}
示例6: onAuraEnds
public override void onAuraEnds(Playfield p, Minion own)
{
if (own.own)
{
p.anzOwnHorsemen--;
if (p.anzOwnHorsemen < 1)
{
p.ownHero.immune = false;
if (p.ownWeaponCard.name == CardDB.cardName.runeblade)
{
int bonus = (p.ownWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
p.minionGetBuffed(p.ownHero, bonus, 0);
p.ownWeaponAttack += bonus;
}
}
}
else
{
p.anzEnemyHorsemen--;
if (p.anzEnemyHorsemen < 1)
{
p.enemyHero.immune = false;
if (p.enemyWeaponCard.name == CardDB.cardName.runeblade)
{
int bonus = (p.enemyWeaponCard.cardIDenum == CardDB.cardIDEnum.NAX9_05H) ? 6 : 3;
p.minionGetBuffed(p.enemyHero, bonus, 0);
p.enemyWeaponAttack += bonus;
}
}
}
}
示例7: onMinionGotDmgTrigger
// Whenever your hero takes damage on your turn, gain +2/+2.
public override void onMinionGotDmgTrigger(Playfield p, Minion m, bool ownDmgdmin)
{
if (p.ownHero.anzGotDmg>=1 && m.own)
{
p.minionGetBuffed(m, 2 * p.ownHero.anzGotDmg, 2 * p.ownHero.anzGotDmg);
}
else if (p.enemyHero.anzGotDmg>=1 && !m.own)
{
p.minionGetBuffed(m, 2 * p.enemyHero.anzGotDmg, 2 * p.enemyHero.anzGotDmg);
}
}
示例8: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
foreach (Minion m in p.ownMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
}
foreach (Minion m in p.enemyMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
}
}
示例9: getBattlecryEffect
// Taunt. Choose One - +1 Attack; or +1 Health.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 1)
{
p.minionGetBuffed(own, 1, 0);
}
if (choice == 2)
{
p.minionGetBuffed(own, 0, 1);
}
}
示例10: getBattlecryEffect
// Battlecry: If your hand is empty, gain +3/+3
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own && p.owncards.Count==0)
{
p.minionGetBuffed(own, 3, 3);
}
if (!own.own && p.enemyAnzCards == 0)
{
p.minionGetBuffed(own, 3, 3);
}
}
示例11: onAuraEnds
public override void onAuraEnds(Playfield p, Minion m)
{
p.anzMurlocWarleader--;
foreach (Minion mn in p.ownMinions)
{
if((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(mn, -2, -1);
}
foreach (Minion mn in p.enemyMinions)
{
if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(mn, -2, -1);
}
}
示例12: onAuraStarts
public override void onAuraStarts(Playfield p, Minion own)
{
p.anzGrimscaleOracle++;
foreach (Minion m in p.ownMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 1, 0);
}
foreach (Minion m in p.enemyMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 1, 0);
}
}
示例13: onAuraEnds
public override void onAuraEnds(Playfield p, Minion m)
{
p.anzGrimscaleOracle--;
foreach (Minion mn in p.ownMinions)
{
if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -1, 0);
}
foreach (Minion mn in p.enemyMinions)
{
if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -1, 0);
}
}
示例14: onCardPlay
// wählt aus:/ verleiht einem diener +4 angriff; oder +4 leben und spott/.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (choice == 1)
{
p.minionGetBuffed(target, 4, 0);
}
if (choice == 2)
{
p.minionGetBuffed(target, 0, 4);
target.taunt = true;
}
}
示例15: onAuraStarts
// alle anderen murlocs haben +2/+1.
public override void onAuraStarts(Playfield p, Minion own)
{
p.anzMurlocWarleader++;
foreach (Minion m in p.ownMinions)
{
if((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
}
foreach (Minion m in p.enemyMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
}
}