修订法强问题
This commit is contained in:
parent
70b286f59e
commit
d975f564c3
@ -376,9 +376,10 @@ export class PetHandler {
|
||||
return value;
|
||||
};
|
||||
|
||||
public addEM(value: number): number{
|
||||
public addEM(value: number, from: PetHandler): number{
|
||||
let res = this._addEM(value);
|
||||
this._owner.onEMChanged(res);
|
||||
(res != 0) && this.dataChanged(from);
|
||||
return res;
|
||||
};
|
||||
|
||||
@ -387,7 +388,7 @@ export class PetHandler {
|
||||
this._enmagic += value;
|
||||
if(this._enmagic < 0){
|
||||
this._enmagic = 0;
|
||||
return tmp;
|
||||
return -tmp;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
@ -349,8 +349,8 @@ export class PlayerHandler {
|
||||
return this._self? this._self._hps: 0;
|
||||
};
|
||||
|
||||
public addEM(value: number): number{
|
||||
return this._self? this._self.addEM(value): 0;
|
||||
public addEM(value: number, from: PetHandler): number{
|
||||
return this._self? this._self.addEM(value, from): 0;
|
||||
};
|
||||
|
||||
public getEM(): number{
|
||||
|
@ -644,7 +644,7 @@ export class Skill {
|
||||
let efftype = SkillEffectType.ENHANCE_MAGIC;
|
||||
if(tgt.dsttype != GameUnitType.NONE){
|
||||
let obj = tgt.dst;
|
||||
let n = obj.addEM(effvalue);
|
||||
let n = obj.addEM(effvalue, tgt.srcPet());
|
||||
if(n >= 0){
|
||||
tgt.success(efftype, n);
|
||||
}else{
|
||||
|
@ -380,6 +380,11 @@ export const enum PowerValueType {
|
||||
* 2.红色标识敌方单位
|
||||
* 3.蓝色标识自己单位
|
||||
* 4.蓝色标识(自己以外)友方单位
|
||||
* 5:红色标识敌方一个“英雄和随从全体”
|
||||
* 6:蓝色标记自己或友方“英雄”
|
||||
* 7:蓝色标记自己或友方“英雄和随从全体”
|
||||
* 11:确认召唤随从
|
||||
* 12:确认发动法术
|
||||
*/
|
||||
export const enum SkillTargetType {
|
||||
NONE = 0,
|
||||
@ -387,6 +392,9 @@ export const enum SkillTargetType {
|
||||
ENEMY_PET = 2,
|
||||
SELF_PET = 3,
|
||||
FRIEND_PET = 4,
|
||||
ENEMY_TEAM = 5,
|
||||
FIREND_HERO = 6,
|
||||
FIREND_TEAM = 7,
|
||||
};
|
||||
|
||||
// 技能使用者类型
|
||||
|
Loading…
x
Reference in New Issue
Block a user