继承时增加倍率

This commit is contained in:
yuexin 2021-03-02 19:54:39 +08:00
parent 1701dfa38b
commit 13d854467e

View File

@ -12,6 +12,7 @@ import SkillMan from "../skill/SkillMan";
import { Card } from "rooms/schema/Card";
import arrUtil from "utils/array.util";
import { SKillEffectData } from "message/SkillInfo";
import { GameEnv } from "cfg/GameEnv";
export class PlayerHandler {
public _player: Player;
@ -196,7 +197,8 @@ export class PlayerHandler {
if(cfg.type_id == EffectCardType.NPC || cfg.type_id == EffectCardType.NPC_CUSTOM){
let exap = 0;
if(oldpet){
exap = oldpet.totalAP();
let env = new GameEnv();
exap = oldpet.totalAP() * env.petInheritRate;
this.delPet(oldpet);
}