From e082d496795bd07657a81714bab4a5a63446e397 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 12 四月 2019 16:41:10 +0800
Subject: [PATCH] 6491 子 【2.0】【开发】打宝界面和境界压制调整 / 【2.0】【后端】打宝界面和境界压制调整

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_904.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_904.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_904.py
index be78169..fae16b2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_904.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_904.py
@@ -17,6 +17,8 @@
 import IPY_GameWorld
 import GameWorld
 import PlayerControl
+import ShareDefine
+import ChConfig
 #---------------------------------------------------------------------
 #全局变量
 #---------------------------------------------------------------------
@@ -33,7 +35,6 @@
 def ProcessBuff(defender, curBuff, curEffect, processBuffTick, tick):
     #---检查Buff可行性---
     curObjType = defender.GetGameObjType()
-
     # 给予经验,只支持玩家对象
     if curObjType != IPY_GameWorld.gotPlayer:
         
@@ -42,15 +43,18 @@
         return
     
     # 玩家最小等级限制
-    if defender.GetLV() < curEffect.GetEffectValue(1):
+    if defender.GetLV() < curEffect.GetEffectValue(2):
         return
     
     reExp = PlayerControl.GetPlayerReExp(defender)
-    giveExp = int(curEffect.GetEffectValue(0)*reExp)
+    giveExp = int(curEffect.GetEffectValue(0)*reExp+curEffect.GetEffectValue(1))
     
     if giveExp <= 0:
         return
     
     playerControl = PlayerControl.PlayerControl(defender)
-    playerControl.AddExp(giveExp) 
+    if curBuff.GetSkill().GetSkillTypeID() == ChConfig.Def_SkillID_RealmBuff:
+        playerControl.AddExp(giveExp, ShareDefine.Def_ViewExpType_RealmBuff)
+    else:
+        playerControl.AddExp(giveExp)
     return

--
Gitblit v1.8.0