using CoreGame; using xFrame; namespace CoreGame.Render { public class Handle_LevelUp : BaseHandle { public override void DoHandle(int eid, object msg) { var combatEntity = Contexts.Combat.GetEntity(eid); var context = AbilitySrv.AttachActiveAbility(combatEntity, 12); if (context != null) { context.dropAbilityWhenEnd = true; var activateAbility = context.asc.TryActivateAbility_WithSeq(context.gaSeq); if (activateAbility == false) { XLog.LogWarning("Handle_LevelUp DoHandle error"); } } var level = CoreUIBridge.BattleInfoParams.heroCommunityInfo.lvl; combatEntity.property.SetProperty(PropertyDef.Level, level, true); // if (combatEntity.hasCommunNameProxy) // { // combatEntity.communityShowInfo.lvl = level; // combatEntity.communNameProxy.RefreshInfo(); // } } } }