Check win and loss states
This commit is contained in:
parent
adc84f9aba
commit
8c641f5524
8 changed files with 69 additions and 7 deletions
18
Assets/Battle/CardsMonsters/QuickSwiftDeathMCard.cs
Normal file
18
Assets/Battle/CardsMonsters/QuickSwiftDeathMCard.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class QuickSwiftDeathMCard : MonsterCard
|
||||
{
|
||||
public QuickSwiftDeathMCard(BattleParticipant owner)
|
||||
: base(owner, MCardId.GolemFist, "Quick Swift Death", 0, CardType.Attack,
|
||||
"Deals 100 damage to target. Target: nearest hero.") {
|
||||
}
|
||||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier, MonsterViewpoint monsterViewpoint) {
|
||||
BattleParticipant target = AIUtils.GetNearestHero(monsterViewpoint, this.owner);
|
||||
DealDamageEffect damageEffect = new DealDamageEffect(target, 100);
|
||||
effectApplier.Apply(damageEffect);
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
11
Assets/Battle/CardsMonsters/QuickSwiftDeathMCard.cs.meta
Normal file
11
Assets/Battle/CardsMonsters/QuickSwiftDeathMCard.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cc74c54a87a767f47bd838afb171504e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue