@@ -21,13 +21,6 @@ export default (G: Game) => {
2121 if ( ! this . testRequirements ( ) ) {
2222 return false ;
2323 }
24- // Commented out due to typescript conflicts, but I don't know if that would cause errors, hence why it's not deleted
25- /*if (damage === undefined) {
26- damage = {
27- // NOTE : This code produce array with doubles
28- type: 'target',
29- }; // For the test function to work
30- }*/
3124 return true ;
3225 } ,
3326
@@ -54,7 +47,7 @@ export default (G: Game) => {
5447 if ( this . isUpgraded ( ) ) {
5548 this . creature . addEffect (
5649 new Effect (
57- 'Burning Heart ' , // Name
50+ 'Burning Spirit ' , // Name
5851 this . creature , // Caster
5952 this . creature , // Target
6053 '' , // Trigger
@@ -114,8 +107,8 @@ export default (G: Game) => {
114107 const abolished = this . creature ;
115108
116109 G . grid . queryDirection ( {
117- fnOnConfirm : function ( ) {
118- ability . animation ( ...arguments ) ;
110+ fnOnConfirm : function ( ... args ) {
111+ ability . animation ( ...args ) ;
119112 } ,
120113 flipped : abolished . player . flipped ,
121114 team : this . _targetTeam ,
@@ -211,9 +204,11 @@ export default (G: Game) => {
211204 query ( ) {
212205 const ability = this ;
213206 const crea = this . creature ;
214- let totalRange = 3 ;
207+ // Base relocation range; upgraded version increases this by 1 per successful use
208+ let totalRange = 6 ;
215209 if ( this . isUpgraded ( ) ) {
216- totalRange += this . creature . accumulatedTeleportRange - 1 ;
210+ // Increase range based on successful prior uses
211+ totalRange += this . creature . accumulatedTeleportRange ;
217212 }
218213
219214 // Relocates to any hex within range except for the current hex
@@ -227,15 +222,17 @@ export default (G: Game) => {
227222 ability . query ( ) ;
228223 return ;
229224 }
230- delete arguments [ 1 ] ;
231- ability . animation ( ...arguments ) ;
225+ ability . animation ( hex ) ;
232226 } ,
233227 } ) ;
234228 } ,
235229 activate ( hex ) {
236230 const ability = this ;
237231 ability . end ( ) ;
238- this . creature . accumulatedTeleportRange = 0 ;
232+ // When upgraded, each successful use increases future range by 1
233+ if ( this . isUpgraded ( ) ) {
234+ this . creature . accumulatedTeleportRange += 1 ;
235+ }
239236 const targets = ability . getTargets ( ability . creature . adjacentHexes ( 1 ) ) ;
240237
241238 targets . forEach ( function ( item ) {
@@ -322,8 +319,8 @@ export default (G: Game) => {
322319 const range = crea . adjacentHexes ( 1 ) ;
323320
324321 G . grid . queryHexes ( {
325- fnOnConfirm : function ( ) {
326- ability . animation ( ...arguments ) ;
322+ fnOnConfirm : function ( ... args ) {
323+ ability . animation ( ...args ) ;
327324 } ,
328325 fnOnSelect : function ( hex ) {
329326 range . forEach ( function ( item ) {
0 commit comments