Reset squadron state more often
This commit is contained in:
parent
325b3682a8
commit
3b6735abed
@ -100,6 +100,7 @@ public class SquadronistaPlugin : IDalamudPlugin
|
||||
if (addon->AtkValuesCount != 133)
|
||||
{
|
||||
_pluginLog.Error("Unexpected AddonGcArmyMemberList atkvalues count");
|
||||
SquadronState = null;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -108,7 +109,10 @@ public class SquadronistaPlugin : IDalamudPlugin
|
||||
|
||||
// can't do any missions like this...
|
||||
if (memberCount < 4)
|
||||
{
|
||||
SquadronState = null;
|
||||
return;
|
||||
}
|
||||
|
||||
IReadOnlyList<SquadronMember> members = Enumerable.Range(0, (int)memberCount)
|
||||
.Select(i => new SquadronMember
|
||||
@ -147,6 +151,7 @@ public class SquadronistaPlugin : IDalamudPlugin
|
||||
private unsafe void UpdateExpeditionState(AddonEvent type, AddonArgs args)
|
||||
{
|
||||
AvailableMissions.Clear();
|
||||
SquadronState = null;
|
||||
|
||||
AddonGcArmyExpedition* addonExpedition = (AddonGcArmyExpedition*)args.Addon;
|
||||
if (addonExpedition->AtkUnitBase.AtkValuesCount != 216)
|
||||
|
Loading…
Reference in New Issue
Block a user