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