Skip to content

Commit

Permalink
Fix for v41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Feb 7, 2024
1 parent c34f642 commit 98caf64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fixed for BTD6 v40.0
- Fixed for BTD6 v41.0
3 changes: 1 addition & 2 deletions MegaKnowledges/Military/AttackAndSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ public class AttackAndSupport : MegaKnowledge

public override void Apply(TowerModel model)
{
if (model.GetBehavior<SubmergeModel>() == null) return;
if (!model.HasBehavior(out SubmergeModel submerge) || model.isParagon) return;

model.targetTypes = Game.instance.model.GetTowerFromId(TowerType.MonkeySub).targetTypes;

var submergeEffect = model.GetBehavior<SubmergeEffectModel>().effectModel;
var submerge = model.GetBehavior<SubmergeModel>();

if (submerge.heroXpScale > 1.0)
{
Expand Down
4 changes: 2 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public static class ModHelperData
{
public const string WorksOnVersion = "40.0";
public const string Version = "1.2.5";
public const string WorksOnVersion = "41.0";
public const string Version = "1.2.6";
public const string Name = "Mega Knowledge";

public const string Description =
Expand Down

0 comments on commit 98caf64

Please sign in to comment.