@@ -262,6 +262,49 @@ class RobertIIAI extends AutoBattler
262262 }
263263 }
264264
265+ on_phaseChanged ( newPhase , lastPhase )
266+ {
267+ switch ( newPhase ) {
268+ case 1 : {
269+ this . queueSkill ( 'omni' ) ;
270+ this . doChargeSlashNext = true ;
271+ this . isComboStarted = false ;
272+ this . isNecromancyPending = true ;
273+ break ;
274+ }
275+ case 2 : {
276+ this . queueSkill ( 'upheaval' ) ;
277+ this . isComboStarted = false ;
278+ this . isStatusHealPending = true ;
279+ this . wasHolyWaterUsed = false ;
280+ this . wasTonicUsed = false ;
281+ break ;
282+ }
283+ case 3 : {
284+ this . queueSkill ( 'protectiveAura' ) ;
285+ this . queueSkill ( this . nextElementalMove !== null ? this . nextElementalMove : 'jolt' ) ;
286+ this . necroTonicItem = this . nextElementalMove === null ? 'tonic' : null ;
287+ this . doChargeSlashNext = false ;
288+ this . elementalsTillRevenge = 2 ;
289+ this . isChargeSlashPending = true ;
290+ this . isComboStarted = false ;
291+ break ;
292+ }
293+ case 4 : {
294+ this . queueSkill ( 'crackdown' ) ;
295+ break ;
296+ }
297+ case 5 : {
298+ this . queueSkill ( 'desperationSlash' ) ;
299+ if ( this . unit . hasStatus ( 'zombie' ) && this . isItemUsable ( 'vaccine' ) )
300+ this . queueItem ( 'vaccine' ) ;
301+ this . isAlcoholPending = true ;
302+ this . isComboStarted = false ;
303+ break ;
304+ }
305+ }
306+ }
307+
265308 async on_itemUsed ( userID , itemID , targetIDs )
266309 {
267310 if ( this . unit . hasStatus ( 'drunk' ) || this . unit . hasStatus ( 'offGuard' ) )
@@ -343,49 +386,6 @@ class RobertIIAI extends AutoBattler
343386 }
344387 }
345388
346- on_phaseChanged ( newPhase , lastPhase )
347- {
348- switch ( newPhase ) {
349- case 1 : {
350- this . queueSkill ( 'omni' ) ;
351- this . doChargeSlashNext = true ;
352- this . isComboStarted = false ;
353- this . isNecromancyPending = true ;
354- break ;
355- }
356- case 2 : {
357- this . queueSkill ( 'upheaval' ) ;
358- this . isComboStarted = false ;
359- this . isStatusHealPending = true ;
360- this . wasHolyWaterUsed = false ;
361- this . wasTonicUsed = false ;
362- break ;
363- }
364- case 3 : {
365- this . queueSkill ( 'protectiveAura' ) ;
366- this . queueSkill ( this . nextElementalMove !== null ? this . nextElementalMove : 'jolt' ) ;
367- this . necroTonicItem = this . nextElementalMove === null ? 'tonic' : null ;
368- this . doChargeSlashNext = false ;
369- this . elementalsTillRevenge = 2 ;
370- this . isChargeSlashPending = true ;
371- this . isComboStarted = false ;
372- break ;
373- }
374- case 4 : {
375- this . queueSkill ( 'crackdown' ) ;
376- break ;
377- }
378- case 5 : {
379- this . queueSkill ( 'desperationSlash' ) ;
380- if ( this . unit . hasStatus ( 'zombie' ) && this . isItemUsable ( 'vaccine' ) )
381- this . queueItem ( 'vaccine' ) ;
382- this . isAlcoholPending = true ;
383- this . isComboStarted = false ;
384- break ;
385- }
386- }
387- }
388-
389389 on_skillUsed ( userID , skillID , stance , targetIDs )
390390 {
391391 if ( this . unit . hasStatus ( 'drunk' ) || this . unit . hasStatus ( 'offGuard' ) )
0 commit comments