Skip to content

Commit 2a11af7

Browse files
Blitz54LocalIdentity
andauthored
Add support for War Banner aura mods (#752)
* Add support for War Banner Aura mods * set as aura so quality works * Cap max valour --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 6c2b700 commit 2a11af7

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

src/Data/Skills/act_str.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12553,6 +12553,14 @@ skills["WarBannerPlayer"] = {
1255312553
label = "War Banner",
1255412554
incrementalEffectiveness = 0.054999999701977,
1255512555
statDescriptionScope = "war_banner",
12556+
statMap = {
12557+
["skill_war_banner_attack_damage_+%_final"] = {
12558+
mod("Damage", "MORE", nil, ModFlag.Attack, 0, { type = "Condition", var = "BannerPlanted" }, { type = "GlobalEffect", effectType = "Aura"}),
12559+
},
12560+
["skill_war_banner_accuracy_+%"] = {
12561+
mod("Accuracy", "INC", nil, 0, 0, { type = "Condition", var = "BannerPlanted" }, { type = "GlobalEffect", effectType = "Aura"}),
12562+
},
12563+
},
1255612564
baseFlags = {
1255712565
},
1255812566
constantStats = {

src/Export/Skills/act_str.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,5 +652,13 @@ statMap = {
652652
#skill WarBannerPlayer
653653
#set WarBannerPlayer
654654
#flags
655+
statMap = {
656+
["skill_war_banner_attack_damage_+%_final"] = {
657+
mod("Damage", "MORE", nil, ModFlag.Attack, 0, { type = "Condition", var = "BannerPlanted" }, { type = "GlobalEffect", effectType = "Aura"}),
658+
},
659+
["skill_war_banner_accuracy_+%"] = {
660+
mod("Accuracy", "INC", nil, 0, 0, { type = "Condition", var = "BannerPlanted" }, { type = "GlobalEffect", effectType = "Aura"}),
661+
},
662+
},
655663
#mods
656664
#skillEnd

src/Modules/ConfigOptions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ local configSettings = {
228228
modList:NewMod("Condition:BannerPlanted", "FLAG", true, "Config")
229229
end },
230230
{ var = "bannerValour", type = "count", label = "Banner Valour:", tooltip = "The amount of valour consumed for the placed banner", ifSkill = { "Dread Banner", "War Banner", "Defiance Banner" }, apply = function(val, modList, enemyModList)
231-
modList:NewMod("Multiplier:ValourStacks", "BASE", val, "Config", { type = "IgnoreCond" }, { type = "Condition", var = "Combat" })
231+
modList:NewMod("Multiplier:ValourStacks", "BASE", m_min(val, 50), "Config", { type = "IgnoreCond" }, { type = "Condition", var = "Combat" })
232232
end },
233233
{ label = "Barkskin:", ifSkill = "Barkskin" },
234234
{ var = "barkskinStacks", type = "count", label = "# of Barkskin Stacks:", ifSkill = "Barkskin", apply = function(val, modList, enemyModList)

0 commit comments

Comments
 (0)