Flower's Protection
Lvl: 1 Buff Range: 15

With the power of Yggdrasil, Nidhogg distorts the space within a 2-meter radius around herself and [Draconic Tribesmen]. Upon entering the space, Nidhogg and her teammates take 60% less damage from enemies outside. The barrier lasts 8 seconds. This skill can be cast within [Earth Field] and [Fire Rain].

Team 5261

function CommonFun.calcBuff_5261(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(c)
  local MaxHp = targetUser:GetProperty("MaxHp")
  local MaxSp = targetUser:GetProperty("MaxSp")
  local A = Value / 100000 * MaxHp * a + Value / 100000 * MaxSp * b
  return A
end

Self Skill 5261

function CommonFun.calcBuff_5261(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(c)
  local MaxHp = targetUser:GetProperty("MaxHp")
  local MaxSp = targetUser:GetProperty("MaxSp")
  local A = Value / 100000 * MaxHp * a + Value / 100000 * MaxSp * b
  return A
end

Team

{
  "id": 136580,
  "BuffDesc": "Reduce DMG outside the Divine Tree Barrier",
  "BuffIcon": "skillbuff_2536001",
  "BuffName": "Flower's Protection",
  "BuffRate": {
    "Odds": 100
  },
  "IconType": 2,
  "BuffEffect": {
    "type": "AttrChange",
    "TreeReduc": {
      "a": 2536,
      "b": 0.05,
      "c": 0.1,
      "type": 8
    }
  }
}

Team

{
  "id": 136582,
  "BuffName": "10799",
  "BuffRate": {
    "Odds": {
      "a": 200131,
      "type": 5000
    }
  },
  "BuffEffect": {
    "Hp": {
      "a": 1,
      "b": 0,
      "c": 200131,
      "type": 5261
    },
    "Sp": {
      "a": 0,
      "b": 1,
      "c": 200131,
      "type": 5261
    },
    "type": "HSPChange",
    "calc_heal": 1,
    "effect_cd": 1
  }
}

Enemy

{
  "id": 136581,
  "BuffName": "10798",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange"
  }
}

Self Skill

{
  "id": 136580,
  "BuffDesc": "Reduce DMG outside the Divine Tree Barrier",
  "BuffIcon": "skillbuff_2536001",
  "BuffName": "Flower's Protection",
  "BuffRate": {
    "Odds": 100
  },
  "IconType": 2,
  "BuffEffect": {
    "type": "AttrChange",
    "TreeReduc": {
      "a": 2536,
      "b": 0.05,
      "c": 0.1,
      "type": 8
    }
  }
}

Self Skill

{
  "id": 136582,
  "BuffName": "10799",
  "BuffRate": {
    "Odds": {
      "a": 200131,
      "type": 5000
    }
  },
  "BuffEffect": {
    "Hp": {
      "a": 1,
      "b": 0,
      "c": 200131,
      "type": 5261
    },
    "Sp": {
      "a": 0,
      "b": 1,
      "c": 200131,
      "type": 5261
    },
    "type": "HSPChange",
    "calc_heal": 1,
    "effect_cd": 1
  }
}

Formula

{
  "id": 2544001,
  "Buff": {
    "team": [
      136580,
      136582
    ],
    "enemy": [
      136581
    ],
    "self_skill": [
      136580,
      136582
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2536000,
      "params": [
        60
      ]
    }
  ],
  "Icon": "skill_2536001",
  "Camps": "Enemy|Friend",
  "Level": 1,
  "Logic": "SkillSelfRange",
  "DescId": "##1264809",
  "NameZh": "##1264746",
  "CastAct": "reading",
  "Fire_EP": 2,
  "Pvp_buff": {
    "team": [
      136580,
      136582
    ],
    "enemy": [
      136581
    ],
    "self_skill": [
      136580,
      136582
    ]
  },
  "AttackAct": [
    "use_skill2"
  ],
  "Attack_EP": 3,
  "SkillType": "Buff",
  "Target_EP": 3,
  "Logic_Param": {
    "count": 16,
    "range": 2,
    "interval": 0.5,
    "max_count": 1,
    "no_select": 1,
    "whitelist": 1,
    "isCountTrap": 1,
    "trap_effect": "sfx_herondhg_ssbh_buff_prf",
    "fieldarea_cannot_immune": 1
  },
  "Launch_Range": 15
}