Skip to content

Commit 08b2290

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Summoned Phantasm not working correctly when used in Soulwrest (#8757)
The Summon Phantasm gem was modifying the level of the minion from the triggerd phantasm when it should not be doing this This also fixes the issue where there were 2 summoned phantasm minions in the list Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent e392284 commit 08b2290

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Modules/CalcActiveSkill.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,10 @@ function calcs.buildActiveSkillModList(env, activeSkill)
629629
for _, skillEffect in ipairs(activeSkill.effectList) do
630630
if skillEffect.grantedEffect.support and skillEffect.grantedEffect.addMinionList then
631631
for _, minionType in ipairs(skillEffect.grantedEffect.addMinionList) do
632-
t_insert(minionList, minionType)
633-
minionSupportLevel[minionType] = skillEffect.grantedEffect.levels[skillEffect.level].levelRequirement
632+
if not isValueInArray(minionList, minionType) then
633+
minionSupportLevel[minionType] = skillEffect.grantedEffect.levels[skillEffect.level].levelRequirement
634+
t_insert(minionList, minionType)
635+
end
634636
end
635637
end
636638
end

0 commit comments

Comments
 (0)