raid plugin: fix plugin not reseting when prescouting raids
If you left a raid while a raid was currently being scouted/held in the same world then there was a chance the plugin would not reset and the scout overlay and timer would break. This was due to the plugin thinking that the player was in a raid party when he left and did not reset. This was fixed by reseting whenever the raid party varp changed while the player is outside of the raid. steps to reproduce: start a raid on account 1 scout another raid in the same world on account 2 leave the raid on account 1 and it will not reset correctly
This commit is contained in:
@@ -54,6 +54,15 @@ public enum VarPlayer
|
||||
SPECIAL_ATTACK_PERCENT(300),
|
||||
SPECIAL_ATTACK_ENABLED(301),
|
||||
|
||||
/**
|
||||
* The ID of the party. This Var is only set in the raid bank area and the raid lobby
|
||||
*
|
||||
* This gets set to -1 when the raid starts. This is first set when the first player of the clan forms a party
|
||||
* on the recruiting board and it changes again when the first person actually enters the raid.
|
||||
*
|
||||
* -1 : Not in a party or in the middle of an ongoing raid
|
||||
* Anything else : This means that your clan has a raid party being formed and has not started yet
|
||||
*/
|
||||
IN_RAID_PARTY(1427),
|
||||
|
||||
NMZ_REWARD_POINTS(1060),
|
||||
|
||||
Reference in New Issue
Block a user