hxp
2020-11-16 cf565bf6d6b13c46de970ad328db4f0d24450453
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_510.py
@@ -47,17 +47,18 @@
    return ChConfig.TYPE_Linear
def GetHorseAttrByType(curPlayer, horseID, attrType):
    horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
    if not horseLV:
        return 0
    horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, horseLV)
    if not horseUpData:
        return 0
    attrTypeList = horseUpData.GetAttrType()
    attrValueList = horseUpData.GetAttrValue()
    if attrType not in attrTypeList:
        return 0
    return attrValueList[attrTypeList.index(attrType)]
    return 0
#    horseLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Horser_LV % horseID, 0, ChConfig.Def_PDictType_Horse)
#    if not horseLV:
#        return 0
#    horseUpData = IpyGameDataPY.GetIpyGameData("HorseUp", horseID, horseLV)
#    if not horseUpData:
#        return 0
#    attrTypeList = horseUpData.GetAttrType()
#    attrValueList = horseUpData.GetAttrValue()
#    if attrType not in attrTypeList:
#        return 0
#
#    return attrValueList[attrTypeList.index(attrType)]