
Sanctuary
Grants the target area with holy strength, dealing 1020/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 1020 HP every sec. Holy strength works on up to 10 targets
Aesir Effects
Skill Levels
• Grants the target area with holy strength, dealing 1000/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 1000 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 980/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 980 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 960/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 960 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 940/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 940 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 920/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 920 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 900/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 900 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 880/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 880 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 860/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 860 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 840/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 840 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 820/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 820 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 740/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 740 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 660/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 660 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 580/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 580 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 500/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 500 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 420/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 420 HP every sec. Holy strength works on up to 10 targets
• Grants the target area with holy strength, dealing 340/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 340 HP every sec. Holy strength works on up to 9 targets
• Grants the target area with holy strength, dealing 260/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 260 HP every sec. Holy strength works on up to 8 targets
• Grants the target area with holy strength, dealing 180/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 180 HP every sec. Holy strength works on up to 7 targets
• Grants the target area with holy strength, dealing 100/2 holy damage to undead and devil units in it. Lasts 11 sec. Grants friendly units in it with 100 HP every sec. Holy strength works on up to 6 targets
Formula
1function CommonFun.calcDamage_5104(srcUser, targetUser, params, damageParam, logger)
2 local BaseLv = srcUser.BaseLv
3 local Int = srcUser:GetProperty("Int")
4 local HolyAtk = srcUser:GetProperty("HolyAtk")
5 local HealEncPer = srcUser:GetProperty("HealEncPer")
6 local enemy = srcUser:IsEnemy(targetUser)
7 local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
8 local Num1 = srcUser:GetRunePoint(51010_AESIR_SANCTUARY_EFFECTIVE_HEALING_ATTEMPTS_50_BUT_HEALING_AMOUNT_15)
9 local RuneDamage = Num1 * 0.15 + 1
10 local Num2 = srcUser:GetRunePoint(53020_AESIR_SANCTUARY_HEALING_EFFECT_2)
11 local RuneDamage1 = Num2 * 0.02 + 1
12 local c = 1
13 if srcUser:HasBuffID(51580_LADY_WHITE_SNAKE_CARD_:MAX_STACK_0) then
14 c = 1.1
15 end
16 local AttrEffect = srcUser:GetProperty("AttrEffect")
17 local bits = CommonFun.getBits(AttrEffect)
18 local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, params, damageParam)
19 local targetDefElement = targetUser:GetProperty("DefAttr")
20 local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
21 local race2 = targetUser.race
22 if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
23 race2 = 3
24 end
25 if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
26 elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
27 race2 = 2
28 end
29 local AttrEffect2 = targetUser:GetProperty("AttrEffect")
30 local DefAttr2 = targetUser:GetProperty("DefAttr")
31 local damChangePer = damageParam.damChangePer
32 local damChangePer1 = damageParam.damChangePer1
33 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
34 local A = damChangePer1 * (1 + HealEncPer) * (1 + BeHealEncPer2) * -1 * (1 + HolyAtk) * RuneDamage * c * RuneDamage1
35 if targetUser:HasBuffID(41100050_HEALING_RECEIVED_:MAX_STACK_0) then
36 local MaxHp = targetUser:GetProperty("MaxHp")
37 local Hp = targetUser:GetProperty("Hp")
38 local Num1 = targetUser:GetRunePoint(70110_AESIR_WHEN_LESS_THAN_15_HP_IS_REMAINING_ALL_HEALING_EFFECTS_WILL_BE_INCREASED_BY_200)
39 if Hp < MaxHp * (0.15 * Num1) then
40 A = A * 3
41 end
42 end
43 local HealtoDam = targetUser:GetBuffLevel(129100_CURE_BARRIER_:MAX_STACK_0)
44 local DamRatio = 1
45 if targetUser:HasBuffID(129100_CURE_BARRIER_:MAX_STACK_0) then
46 DamRatio = -0.1 * HealtoDam
47 end
48 local HealReduce = targetUser:GetBuffLevel(136500_10783_:MAX_STACK_0)
49 if targetUser:HasBuffID(136500_10783_:MAX_STACK_0) then
50 DamRatio = 1 - (0.2 + 0.03 * HealReduce)
51 end
52 if targetUser:GetNpcID() == 40021_EMPERIUM and enemy ~= true then
53 local MaxHp_GVG = targetUser:GetProperty("MaxHp")
54 return -MaxHp_GVG / 300
55 end
56 if enemy then
57 if race2 == 3 or DefAttr2 == 9 then
58 return A / 2 * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 * -1 * (1 + MDamIncrease)
59 else
60 return 0, 0
61 end
62 elseif race2 == 3 or DefAttr2 == 9 then
63 return -1
64 else
65 return A * DamRatio
66 end
67end