v3.0.0: fixed various spell errors:

- holy lance not spending charges
- guiding light cooldown stacking on itself
- recall glyph duration stacking on itself
This commit is contained in:
Evan Debenham
2024-12-02 12:00:56 -05:00
parent 26ef4dedd0
commit 1c4e55216c
3 changed files with 5 additions and 3 deletions

View File

@@ -725,7 +725,7 @@ public enum Talent {
&& hero.hasTalent(RECALL_GLYPH)
&& Scroll.class.isAssignableFrom(cls)
&& cls != ScrollOfUpgrade.class){
Buff.affect(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
Buff.prolong(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
}
}
@@ -733,7 +733,7 @@ public enum Talent {
if (hero.heroClass == HeroClass.CLERIC
&& hero.hasTalent(RECALL_GLYPH)
&& Runestone.class.isAssignableFrom(cls)){
Buff.affect(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
Buff.prolong(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
}
}

View File

@@ -87,7 +87,7 @@ public class GuidingLight extends TargetedClericSpell {
onSpellCast(tome, hero);
if (hero.subClass == HeroSubClass.PRIEST) {
Buff.affect(hero, GuidingLightPriestCooldown.class, 100f);
Buff.prolong(hero, GuidingLightPriestCooldown.class, 100f);
}
}

View File

@@ -111,6 +111,7 @@ public class HolyLance extends TargetedClericSpell {
enemy.sprite.burst(0xFFFFFFFF, 10);
hero.spendAndNext(1f);
onSpellCast(tome, hero);
FlavourBuff.affect(hero, LanceCooldown.class, 50f);
}
});
@@ -124,6 +125,7 @@ public class HolyLance extends TargetedClericSpell {
public void call() {
Splash.at(target, 0xFFFFFFFF, 10);
hero.spendAndNext(1f);
onSpellCast(tome, hero);
FlavourBuff.affect(hero, LanceCooldown.class, 50f);
}
});