你现在尚未登录,许多功能可能无法正常使用,若已有账号,请登录,若没有,请先注册Twitch账号
目前我们有非常多的待翻译条目,你也可以看一下目前我们需要优先处理的有哪些目前我们有非常多的待翻译条目,你也可以看一下目前我们需要优先处理的有哪些英雄页面的攻略、克制和物品页面的推荐英雄、小贴士等均为社区玩家编写的,你也可以把自己的心得写上去哦。英雄页面的攻略、克制和物品页面的推荐英雄、小贴士等均为社区玩家编写的,你也可以把自己的心得写上去哦。看不懂bkb文本中debuff技能免疫之前施加并且没有被驱散雪球战斗嚎叫是少数几个不带驱散的技能免疫,亲自试一下战斗嚎叫过程中还有没有debuff吧。看不懂bkb文本中debuff技能免疫之前施加并且没有被驱散雪球战斗嚎叫是少数几个不带驱散的技能免疫,亲自试一下战斗嚎叫过程中还有没有debuff吧。看不懂技能的buff/debuff是哪个跟哪个?鼠标移动到名称上就能看到游戏内显示的名字了。看不懂技能的buff/debuff是哪个跟哪个?鼠标移动到名称上就能看到游戏内显示的名字了。目前我們沒有善於製作其他中文變體的人員,如果您善於或擁有相關技術,請幫忙補充其他中文變體的空白。目前我們沒有善於製作其他中文變體的人員,如果您善於或擁有相關技術,請幫忙補充其他中文變體的空白。

模块:Ability

来自Dota 2 Wiki
跳转至: 导航搜索
Reality Rift icon.png
▶️ Planeshift.
该模块的文档可以在Template:Ability找到。
You may be forwarded to another wiki language, in case a translation is not available.



local symbol = require( 'Module:Symbol' )._main
local symbol_aghs = symbol({ 'Aghanim' })
local symbol_tal = symbol({ 'Talent' })
local getArgs = require( 'Module:Arguments' ).getArgs
local p = {}


-- Implements the mechanics symbols in the header.
function p.symbols(frame)
  local args = getArgs(frame, {
    wrappers = {
      'Template:Ability'
    }
  })
  local default_size = '20px'
  local symbols = {}
  if args['oncastproc'] then table.insert( symbols, symbol({ 'on cast proc', size=default_size }) ) end
  if args['rootdisables'] then table.insert( symbols, symbol({ 'root', args['rootdisables'], size=default_size }) ) end
  if args['illusionuse'] then table.insert( symbols, symbol({ 'illusion', args['illusionuse'], size=default_size }) ) end
  if args['disjointable'] then table.insert( symbols, symbol({ 'disjoint', args['disjointable'], size=default_size }) ) end
  if args['breakable'] then table.insert( symbols, symbol({ 'break', args['breakable'], size=default_size }) ) end
  if args['linkenblock'] then table.insert( symbols, symbol({ 'linken', args['linkenblock'], size=default_size }) ) end
  if args['bkbblock'] then table.insert( symbols, symbol({ 'bkb', args['bkbblock'], size=default_size }) ) end
  
  return table.concat( symbols, ' ' ) .. ' '
end

function p.target(frame)
  local args = getArgs(frame, {
    wrappers = {
      'Template:Ability'
    }
  })
  local target_dict = {
    ["No Target"] = '[[技能#无目标|-{zh-hans:无目标;zh-hant:沒有目標}-]]',
    ["Target Unit"] = '[[技能#单位目标|-{zh-hans:单位目标;zh-hant:目標單位}-]]',
    ["Target Point"] = '[[技能#点目标|-{zh-hans:点目标;zh-hant:目標地點}-]]',
    ["Target Area"] = '[[技能#区域目标|-{zh-hans:区域目标;zh-hant:目標範圍}-]]',
    ["Passive"] = '[[技能#被动|被动]]',
    ["Aura"] = '[[光环|-{zh-hans:光环;zh-hant:靈氣}-]]',                     
    ["Toggle"] = '[[技能#切换|切换]]',
  }
  target_dict["无目标"] = target_dict["No Target"]
  target_dict["单位目标"] = target_dict["Target Unit"]
  target_dict["点目标"] = target_dict["Target Point"]
  target_dict["区域目标"] = target_dict["Target Area"]
  target_dict["被动"] = target_dict["Passive"]
  target_dict["光环"] = target_dict["Aura"]
  target_dict["切换"] = target_dict["Toggle"]
  local target2_dict = {
    ["No Target"] = ' / [[技能#无目标|-{zh-hans:无目标;zh-hant:沒有目標}-]]',
    ["No Target aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#无目标|<span style="color:#538028;">-{zh-hans:无目标;zh-hant:沒有目標}-</span>]])',
    ["No Target tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#无目标|-{zh-hans:无目标;zh-hant:沒有目標}-]])',
    ["Target Unit"] = ' / [[技能#单位目标|-{zh-hans:单位目标;zh-hant:目標單位}-]]',
    ["Target Unit aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#单位目标|<span style="color:#538028;">-{zh-hans:单位目标;zh-hant:目標單位}-</span>]])',
    ["Target Unit tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#单位目标|-{zh-hans:单位目标;zh-hant:目標單位}-]])',
    ["Target Point"] = ' / [[技能#点目标|-{zh-hans:点目标;zh-hant:目標地點}-]]',
    ["Target Point aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#点目标|<span style="color:#538028;">-{zh-hans:点目标;zh-hant:目標地點}-</span>]])',
    ["Target Point tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#点目标|-{zh-hans:点目标;zh-hant:目標地點}-]])',
    ["Target Area"] = ' / [[技能#区域目标|-{zh-hans:区域目标;zh-hant:目標範圍}-]]',
    ["Target Area aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#区域目标|<span style="color:#538028;">-{zh-hans:区域目标;zh-hant:目標範圍}-</span>]])',
    ["Target Area tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#区域目标|-{zh-hans:区域目标;zh-hant:目標範圍}-]])',
    ["Passive"] = ' / [[技能#被动|被动]]',
    ["Passive aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#被动|<span style="color:#538028;">被动</span>]])',
    ["Passive tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#被动|被动]])',
    ["Aura"] = ' / [[光环|-{zh-hans:光环;zh-hant:靈氣}-]]',
    ["Aura aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[光环|<span style="color:#538028;">-{zh-hans:光环;zh-hant:靈氣}-</span>]])',
    ["Aura tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[光环|-{zh-hans:光环;zh-hant:靈氣}-]])',
    ["Channeled"] = ' / [[持续施法]]', -- Should always be 2nd.
    ["Channeled aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[持续施法|<span style="color:#538028;">持续施法</span>]])',
    ["Channeled tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[持续施法]])',
    ["Autocast"] = ' / [[技能#自动施法|自动施放]]', --Should always be 2nd.
    ["Autocast aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#自动施法|<span style="color:#538028;">自动施放</span>]])',
    ["Autocast tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#自动施法|自动施放]])',
    ["Toggle"] = ' / [[技能#切换|切换]]',
    ["Toggle aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#切换|<span style="color:#538028;">切换</span>]])',
    ["Toggle tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[技能#切换|切换]])',
    ["Target Unit / Channeled"] = ' / [[技能#单位目标|-{zh-hans:单位目标;zh-hant:目標單位}-]] / [[持续施法]]', --Specifically for travel boots/tp scrolls.
    ["Target Unit aghs / Channeled"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#单位目标|<span style="color:#538028;">-{zh-hans:单位目标;zh-hant:目標單位}-</span>]]) / [[持续施法]] ', --Specifically for Tricks of the Trade.
    ["Target Unit or Area aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[技能#单位目标|<span style="color:#538028;">-{zh-hans:单位目标;zh-hant:目標單位}-</span>]] / [[技能#区域目标|<span style="color:#538028;">-{zh-hans:区域目标;zh-hant:目標範圍}-</span>]]) ', --Specifically for Eclipse.
    ["Target Unit / Target Area tal"] = ' / [[技能#单位目标|-{zh-hans:单位目标;zh-hant:目標單位}-]]<br>(' .. symbol_tal .. '&nbsp;[[技能#区域目标|-{zh-hans:区域目标;zh-hant:目標範圍}-]]) ', --Specifically for Living Armor.
    ["Vector"] = ' / [[矢量目标]]',
  }
  target_dict["无目标"] = target_dict["No Target"]
  target_dict["无目标A杖"] = target_dict["No Target aghs"]
  target_dict["无目标天赋"] = target_dict["No Target tal"]
  target_dict["单位目标"] = target_dict["Target Unit"]
  target_dict["单位目标A杖"] = target_dict["Target Unit aghs"]
  target_dict["单位目标天赋"] = target_dict["Target Unit tal"]
  target_dict["点目标"] = target_dict["Target Point"]
  target_dict["点目标A杖"] = target_dict["Target Point aghs"]
  target_dict["点目标天赋"] = target_dict["Target Point tal"]
  target_dict["区域目标"] = target_dict["Target Area"]
  target_dict["区域目标A杖"] = target_dict["Target Area aghs"]
  target_dict["区域目标天赋"] = target_dict["Target Area tal"]
  target_dict["被动"] = target_dict["Passive"]
  target_dict["被动A杖"] = target_dict["Passive aghs"]
  target_dict["被动天赋"] = target_dict["Passive tal"]
  target_dict["光环"] = target_dict["Aura"]
  target_dict["光环A杖"] = target_dict["Aura aghs"]
  target_dict["光环天赋"] = target_dict["Aura tal"]
  target_dict["持续施法"] = target_dict["Channeled"]
  target_dict["持续施法A杖"] = target_dict["Channeled aghs"]
  target_dict["持续施法天赋"] = target_dict["Channeled tal"]
  target_dict["自动施法"] = target_dict["Autocast"]
  target_dict["自动施放"] = target_dict["Autocast"]
  target_dict["自动施法A杖"] = target_dict["Autocast aghs"]
  target_dict["自动施放A杖"] = target_dict["Autocast aghs"]
  target_dict["自动施法天赋"] = target_dict["Autocast tal"]
  target_dict["自动施放天赋"] = target_dict["Autocast tal"]
  target_dict["切换"] = target_dict["Toggle"]
  target_dict["切换A杖"] = target_dict["Toggle aghs"]
  target_dict["切换天赋"] = target_dict["Toggle tal"]
  target_dict["单位目标 / 持续施法"] = target_dict["Target Unit / Channeled"]
  target_dict["单位目标A杖 / 持续施法"] = target_dict["Target Unit aghs / Channeled"]
  target_dict["单位或区域目标A杖"] = target_dict["Target Unit or Area aghs"]
  target_dict["单位目标 / 区域目标天赋"] = target_dict["Target Unit / Target Area tal"]
  target_dict["矢量"] = target_dict["Vector"]
  
  local target = target_dict[args['target']] or '无'
  if args['target'] and args['target2'] then
    local target2 = target2_dict[args['target2']] or '无'
    target = target .. ' ' .. target2
  end
  
  return target
end

function p.affects(frame)
  local args = getArgs(frame, {
    wrappers = {
      'Template:Ability'
    }
  })
  
  -- Implements the Arc Warden easteregg.
  zet_easteregg = function()
    if mw.title.getCurrentTitle().text == '天穹守望者' then
      return '本尊'
    else
      return '自身'
    end
  end
  
  local affects_dict = {
    ["Heroes"] = '[[英雄]]',
    ["Enemy Heroes"] = '[[英雄|敌方英雄]]',
    ["Allied Heroes"] = '[[英雄|友方英雄]]',
    ["Units"] = '单位',
    ["Enemy Units"] = '敌方单位',
    ["Allied Units"] = '友方单位',
    ["Self"] = zet_easteregg(),
    ["Enemies"] = '敌人',
    ["Allies"] = '友军',
    ["Trees"] = '[[树木]]',
    ["Pumpkin Basket"] = '南瓜篮',
  }
  affects_dict["英雄"] = affects_dict["Heroes"]
  affects_dict["敌方英雄"] = affects_dict["Enemy Heroes"]
  affects_dict["友方英雄"] = affects_dict["Allied Heroes"]
  affects_dict["单位"] = affects_dict["Units"]
  affects_dict["敌方单位"] = affects_dict["Enemy Units"]
  affects_dict["友方单位"] = affects_dict["Allied Units"]
  affects_dict["自身"] = affects_dict["Self"]
  affects_dict["敌人"] = affects_dict["Enemies"]
  affects_dict["友军"] = affects_dict["Allies"]
  affects_dict["树木"] = affects_dict["Trees"]
  affects_dict["南瓜篮"] = affects_dict["Pumpkin Basket"]
  local affects2_dict = {
    ["Heroes"] = ' / [[英雄]]',
    ["Heroes aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[英雄|<span style="color:#538028;">英雄</span>]])',
    ["Heroes tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[英雄]])',
    ["Enemy Heroes"] = ' / [[英雄|敌方英雄]]',
    ["Enemy Heroes aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[英雄|<span style="color:#538028;">敌方英雄</span>]])',
    ["Enemy Heroes tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[英雄|敌方英雄]])',
    ["Allied Heroes"] = ' / [[英雄|友方英雄]]',
    ["Allied Heroes aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[英雄|<span style="color:#538028;">友方英雄</span>]])',
    ["Allied Heroes tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[英雄|友方英雄]])',
    ["Units"] = ' / 单位',
    ["Units aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">单位</span>)',
    ["Units tal"] = '<br>(' .. symbol_tal .. '&nbsp;单位)',
    ["Enemy Units"] = ' / 敌方单位',
    ["Enemy Units aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">敌方单位</span>)',
    ["Enemy Units tal"] = '<br>(' .. symbol_tal .. '&nbsp;敌方单位)',
    ["Allied Units"] = ' / 友方单位',
    ["Allied Units aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">友方单位</span>)',
    ["Allied Units tal"] = '<br>(' .. symbol_tal .. '&nbsp;友方单位)',
    ["Self"] = ' / 自身',
    ["Self aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">自身</span>)',
    ["Self tal"] = '<br>(' .. symbol_tal .. '&nbsp;自身)',
    ["Enemies"] = ' / 敌人',
    ["Enemies aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">敌人</span>)',
    ["Enemies tal"] = '<br>(' .. symbol_tal .. '&nbsp;敌人)',
    ["Allies"] = ' / 友军',
    ["Allies aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;<span style="color:#538028;">友军</span>)',
    ["Allies tal"] = '<br>(' .. symbol_tal .. '&nbsp;友军)',
    ["Trees"] = ' / [[树木]]',
    ["Trees aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[树木|<span style="color:#538028;">树木]]</span>)',
    ["Trees tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[树木]])',
  }
  affects2_dict["英雄"] = affects2_dict["Heroes"]
  affects2_dict["英雄A杖"] = affects2_dict["Heroes aghs"]
  affects2_dict["英雄天赋"] = affects2_dict["Heroes tal"]
  affects2_dict["敌方英雄"] = affects2_dict["Enemy Heroes"]
  affects2_dict["敌方英雄A杖"] = affects2_dict["Enemy Heroes aghs"]
  affects2_dict["敌方英雄天赋"] = affects2_dict["Enemy Heroes tal"]
  affects2_dict["友方英雄"] = affects2_dict["Allied Heroes"]
  affects2_dict["友方英雄A杖"] = affects2_dict["Allied Heroes aghs"]
  affects2_dict["友方英雄天赋"] = affects2_dict["Allied Heroes tal"]
  affects2_dict["单位"] = affects2_dict["Units"]
  affects2_dict["单位A杖"] = affects2_dict["Units aghs"]
  affects2_dict["单位天赋"] = affects2_dict["Units tal"]
  affects2_dict["敌方单位"] = affects2_dict["Enemy Units"]
  affects2_dict["敌方单位A杖"] = affects2_dict["Enemy Units aghs"]
  affects2_dict["敌方单位天赋"] = affects2_dict["Enemy Units tal"]
  affects2_dict["友方单位"] = affects2_dict["Allied Units"]
  affects2_dict["友方单位A杖"] = affects2_dict["Allied Units aghs"]
  affects2_dict["友方单位天赋"] = affects2_dict["Allied Units tal"]
  affects2_dict["自身"] = affects2_dict["Self"]
  affects2_dict["自身A杖"] = affects2_dict["Self aghs"]
  affects2_dict["自身天赋"] = affects2_dict["Self tal"]
  affects2_dict["敌人"] = affects2_dict["Enemies"]
  affects2_dict["敌人A杖"] = affects2_dict["Enemies aghs"]
  affects2_dict["敌人天赋"] = affects2_dict["Enemies tal"]
  affects2_dict["友军"] = affects2_dict["Allies"]
  affects2_dict["友军A杖"] = affects2_dict["Allies aghs"]
  affects2_dict["友军天赋"] = affects2_dict["Allies tal"]
  affects2_dict["树木"] = affects2_dict["Trees"]
  affects2_dict["树木A杖"] = affects2_dict["Trees aghs"]
  affects2_dict["树木天赋"] = affects2_dict["Trees tal"]
  if args['affects'] then
    local affects = affects_dict[args['affects']]
    if args['affects2'] then
      affects = affects .. ' ' .. affects2_dict[args['affects2']]
    end
    return "'''影响目标'''<br>" .. affects
  end
end

-- Implements the damagetypes.
function p.damagetype(frame)
  local args = getArgs(frame, {
    wrappers = {
      'Template:Ability'
    }
  })
  local damagetype_dict = {
    ["Physical"] = '[[伤害类型#物理|<span style="color:#AE2F28; font-weight:bold">物理</span>]]',
    ["Magical"] = '[[伤害类型#魔法|<span style="color:#5B93D1; font-weight:bold">魔法</span>]]',
    ["Pure"] = '[[伤害类型#纯粹|<span style="color:#D8AE53; font-weight:bold">纯粹</span>]]',
    ["Instant Attack"] = '[[攻击力#即时攻击| <span style="color:#598307; font-weight:bold">即时攻击</span>]]',
    ["Instant Attack tal"] = '' .. symbol_tal .. '&nbsp;[[攻击力#即时攻击| <span style="color:#598307; font-weight:bold">即时攻击</span>]]',
    ["Instant Kill"] = '[[伤害类型#立即击杀| <span style="color:#5B388F; font-weight:bold">立即击杀</span>]]',
    ["Composite"] = '[[伤害类型#混合|<span style="color:#5BD199; font-weight:bold">-{zh-hans:混合;zh-hant:綜合}-</span>]]', -- Use only for old abilities.
    ["Universal"] = '[[伤害类型#通用|<span style="color:#8650AC; font-weight:bold">-{zh-hans:通用;zh-hant:普遍}-</span>]]', -- Use only for old abilities.
    ["HP Removal"] = '[[伤害类型#生命移除|生命移除]]', -- Use only for old abilities.
  }
  damagetype_dict["物理"] = damagetype_dict["Physical"]
  damagetype_dict["魔法"] = damagetype_dict["Magical"]
  damagetype_dict["纯粹"] = damagetype_dict["Pure"]
  damagetype_dict["即时攻击"] = damagetype_dict["Instant Attack"]
  damagetype_dict["即时攻击天赋"] = damagetype_dict["Instant Attack tal"]
  damagetype_dict["立即击杀"] = damagetype_dict["Instant Kill"]
  damagetype_dict["混合"] = damagetype_dict["Composite"]
  damagetype_dict["通用"] = damagetype_dict["Universal"]
  damagetype_dict["生命移除"] = damagetype_dict["HP Removal"]
  local damagetype2_dict = {
    ["Physical"] = ' / [[伤害类型#物理|<span style="color:#AE2F28; font-weight:bold">物理</span>]]',
    ["Physical aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[伤害类型#物理|<span style="color:#AE2F28; font-weight:bold">物理</span>]])',
    ["Physical tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[伤害类型#物理|<span style="color:#AE2F28; font-weight:bold">物理</span>]])',
    ["Magical"] = ' / [[伤害类型#魔法|<span style="color:#5B93D1; font-weight:bold">魔法</span>]]',
    ["Magical aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[伤害类型#魔法|<span style="color:#5B93D1; font-weight:bold">魔法</span>]])',
    ["Magical tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[伤害类型#魔法|<span style="color:#5B93D1; font-weight:bold">魔法</span>]])',
    ["Pure"] = ' / [[伤害类型#纯粹|<span style="color:#D8AE53; font-weight:bold">纯粹</span>]]',
    ["Pure aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[伤害类型#纯粹|<span style="color:#D8AE53; font-weight:bold">纯粹</span>]])',
    ["Pure tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[伤害类型#纯粹|<span style="color:#D8AE53; font-weight:bold">纯粹</span>]])',
    ["Instant Attack"] = ' / [[攻击力#即时攻击| <span style="color:#598307; font-weight:bold">即时攻击</span>]]',
    ["Instant Kill"] = ' / [[伤害类型#立即击杀| <span style="color:#5B388F; font-weight:bold">立即击杀</span>]]',
    ["Instant Attack aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[攻击力#即时攻击|<span style="color:#598307; font-weight:bold">即时攻击</span>]])',
    ["Instant Kill aghs"] = '<br>(' .. symbol_aghs .. '&nbsp;[[伤害类型#立即击杀|<span style="color:#5B388F; font-weight:bold">立即击杀</span>]])',
    ["Instant Attack tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[攻击力#即时攻击|<span style="color:#598307; font-weight:bold">即时攻击</span>]])',
    ["Instant Kill tal"] = '<br>(' .. symbol_tal .. '&nbsp;[[伤害类型#立即击杀|<span style="color:#5B388F; font-weight:bold">立即击杀</span>]])',
    ["HP Removal"] = '<br>([[伤害类型#生命移除|生命移除]])', -- Not an actual damage type, so should always be used as 2nd.
  }
  damagetype2_dict["物理"] = damagetype2_dict["Physical"]
  damagetype2_dict["物理A杖"] = damagetype2_dict["Physical aghs"]
  damagetype2_dict["物理天赋"] = damagetype2_dict["Physical tal"]
  damagetype2_dict["魔法"] = damagetype2_dict["Magical"]
  damagetype2_dict["魔法A杖"] = damagetype2_dict["Magical aghs"]
  damagetype2_dict["魔法天赋"] = damagetype2_dict["Magical tal"]
  damagetype2_dict["纯粹"] = damagetype2_dict["Pure"]
  damagetype2_dict["纯粹A杖"] = damagetype2_dict["Pure aghs"]
  damagetype2_dict["纯粹天赋"] = damagetype2_dict["Pure tal"]
  damagetype2_dict["即时攻击"] = damagetype2_dict["Instant Attack"]
  damagetype2_dict["即时攻击A杖"] = damagetype2_dict["Instant Attack aghs"]
  damagetype2_dict["即时攻击天赋"] = damagetype2_dict["Instant Attack tal"]
  damagetype2_dict["立即击杀"] = damagetype2_dict["Instant Kill"]
  damagetype2_dict["立即击杀A杖"] = damagetype2_dict["Instant Kill aghs"]
  damagetype2_dict["立即击杀天赋"] = damagetype2_dict["Instant Kill tal"]
  damagetype2_dict["生命移除"] = damagetype2_dict["HP Removal"]
  if args['damagetype'] then
    local damagetype = damagetype_dict[args['damagetype']]
    if args['damagetype2'] then
      damagetype = damagetype .. ' ' .. damagetype2_dict[args['damagetype2']]
    end
    
    return "'''伤害类型'''<br>" .. damagetype
  end
end


return p