1 Star 0 Fork 62

tkmeeta / hearthstone

forked from Eiden / hearthstone 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MedivhSValetCard.java 838 Bytes
一键复制 编辑 原始数据 按行查看 历史
Eiden 提交于 2020-06-05 16:13 . hotfix
package cn.eiden.hsm.game.card.kara.mage;
import cn.eiden.hsm.annotation.TargetScope;
import cn.eiden.hsm.game.card.defs.kara.mage.MedivhSValet;
import cn.eiden.hsm.game.keyword.Battle;
/**
* 麦迪文的男仆
* @author Eiden J.P Zhou
* @date 2020/6/1 15:31
*/
@TargetScope
public class MedivhSValetCard extends MedivhSValet {
private static final int DMG = 3;
@Override
protected Battle selfBattleCry() {
return (s,t) -> {
if (t!=null) {t.beHurt(s,DMG);t.getOwner().checkMinion();}
};
}
/**
* 在没有奥秘时不需要选择目标</br>
* 这张卡牌在某些条件下不需要选择目标,所以重写此方法
* @return 是否不需要选择目标
*/
@Override
public boolean isNoneTarget() {
return !this.getOwner().hasSecret();
}
}
Java
1
https://gitee.com/tkmeeta/hearthstone.git
git@gitee.com:tkmeeta/hearthstone.git
tkmeeta
hearthstone
hearthstone
master

搜索帮助