mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Minor Adventure bug fixes (#3683)
Prevent NPE with invalid event history Correct transition from aggro to previous movement behavior with dungeon mobs
This commit is contained in:
@@ -361,6 +361,8 @@ public class EnemySprite extends CharacterSprite implements Steerable<Vector2> {
|
|||||||
}
|
}
|
||||||
if (aggro && spriteToPlayer.len() > pursueRange) {
|
if (aggro && spriteToPlayer.len() > pursueRange) {
|
||||||
aggro = false;
|
aggro = false;
|
||||||
|
if (navPath != null)
|
||||||
|
navPath.clear();
|
||||||
initializeBaseMovementBehavior();
|
initializeBaseMovementBehavior();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,8 +110,12 @@ public class PlayerStatistic implements SaveFileContent {
|
|||||||
else
|
else
|
||||||
winLossRecord.clear();
|
winLossRecord.clear();
|
||||||
|
|
||||||
if (data!=null&&data.containsKey("completedEvents"))
|
if (data!=null&&data.containsKey("completedEvents")) {
|
||||||
completedEvents = (ArrayList<AdventureEventData>) data.readObject("completedEvents");
|
completedEvents = (ArrayList<AdventureEventData>) data.readObject("completedEvents");
|
||||||
|
if (completedEvents == null) {
|
||||||
|
completedEvents = new ArrayList<>();
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
completedEvents.clear();
|
completedEvents.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ SVar:TrigLoseLife:DB$ LoseLife | LifeAmount$ X
|
|||||||
SVar:X:Count$InYourHand/Times.2
|
SVar:X:Count$InYourHand/Times.2
|
||||||
SVar:DonateMe:5
|
SVar:DonateMe:5
|
||||||
Oracle:When Demonic Lore enters the battlefield, draw three cards.\nAt the beginning of your end step, you lose 2 life for each card in your hand.
|
Oracle:When Demonic Lore enters the battlefield, draw three cards.\nAt the beginning of your end step, you lose 2 life for each card in your hand.
|
||||||
|
AI:Remove:Random
|
||||||
|
|||||||
Reference in New Issue
Block a user