--每兩回合攻擊力提升 30%
local turnPassed = 0
local powerLevel = 0

function EndTurn(turn)
    --經過回合計算
    turnPassed = turnPassed + 1

    --每經過兩回合，計算一次力量提升
    if turnPassed == 1 then
        powerLevel = powerLevel + 1
        turnPassed = 0
    end
end

--攻擊前計算力量提升次數，每次提升30%
function BeforeAttack(skill, attacker)
    property[Prop.SkillDamageFactor] = 30 * powerLevel

    print(unit.Name .. " 本次攻擊威力已提升 " .. property[Prop.SkillDamageFactor] .. "% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
end