增加部分函数
This commit is contained in:
parent
9acfaba329
commit
0d7f0d5d58
@ -122,6 +122,14 @@ export class SkillTarget{
|
|||||||
effctid == SkillEffectType.ATTACK_BACK;
|
effctid == SkillEffectType.ATTACK_BACK;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public isAttackSkill(){
|
||||||
|
return this.srcskilltype == SkillEffectType.ATTACK;
|
||||||
|
};
|
||||||
|
|
||||||
|
public isAttackBackSkill(){
|
||||||
|
return this.srcskilltype == SkillEffectType.ATTACK_BACK;
|
||||||
|
};
|
||||||
|
|
||||||
public targetIsPet(){
|
public targetIsPet(){
|
||||||
return this.dsttype == GameUnitType.PET || this.dsttype == GameUnitType.BATTLEUNIT;
|
return this.dsttype == GameUnitType.PET || this.dsttype == GameUnitType.BATTLEUNIT;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user