Commit 087f8ce 1 parent 0c77142 commit 087f8ce Copy full SHA for 087f8ce
File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,24 @@ export class GameParserImpl implements GameParser {
477
477
this . emitCompassGameEvent ( this . compassDirections ) ;
478
478
this . compassDirections = [ ] ;
479
479
break ;
480
+ case 'spell' :
481
+ // Emit the spell because we are at the end of the tag.
482
+ // Example: `<spell>Fire Shards</spell>`
483
+ this . emitSpellGameEvent ( this . gameText ) ;
484
+ this . gameText = '' ;
485
+ break ;
486
+ case 'left' :
487
+ // Emit the left hand item because we are at the end of the tag.
488
+ // Example: `<left>red backpack</left>`
489
+ this . emitLeftHandGameEvent ( this . gameText ) ;
490
+ this . gameText = '' ;
491
+ break ;
492
+ case 'right' :
493
+ // Emit the right hand item because we are at the end of the tag.
494
+ // Example: `<right>Empty</right>`
495
+ this . emitRightHandGameEvent ( this . gameText ) ;
496
+ this . gameText = '' ;
497
+ break ;
480
498
}
481
499
482
500
if ( this . activeTags . length > 0 ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export interface IndicatorGameEvent {
72
72
}
73
73
74
74
/**
75
- * <spell>Fire Ball </spell>
75
+ * <spell>Fire Shards </spell>
76
76
*/
77
77
export interface SpellGameEvent {
78
78
type : GameEventType . SPELL ;
You can’t perform that action at this time.
0 commit comments