fix strings
This commit is contained in:
		
							parent
							
								
									26773bc0f8
								
							
						
					
					
						commit
						a2df5f3f3d
					
				| @ -366,7 +366,7 @@ export class Battle { | |||||||
|             if (!targetMember) return; |             if (!targetMember) return; | ||||||
|             battle.channel.send(`Alice used Malediction "Hourai Doll"!\n${targetMember} was bunished by <@208460737180467200>!`); |             battle.channel.send(`Alice used Malediction "Hourai Doll"!\n${targetMember} was bunished by <@208460737180467200>!`); | ||||||
|             targetMember.roles.add("599837687850991659"); |             targetMember.roles.add("599837687850991659"); | ||||||
|             battle.appendLog(`${targetMember} was bunished by <@208460737180467200>!`); |             this.appendLog(`${targetMember} was bunished by <@208460737180467200>!`); | ||||||
|         }, |         }, | ||||||
|         perfectFreeze: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         perfectFreeze: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.potencyEffects = target.potencyEffects.filter(effect => {return effect.type != EffectType.Speed}); |             target.potencyEffects = target.potencyEffects.filter(effect => {return effect.type != EffectType.Speed}); | ||||||
| @ -376,7 +376,7 @@ export class Battle { | |||||||
|                 potency: 1-target.speed |                 potency: 1-target.speed | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s speed dropped to 1!`); |             this.appendLog(`(${target.team}) ${target.character.nameShort}'s speed dropped to 1!`); | ||||||
|         }, |         }, | ||||||
|         fireBird: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         fireBird: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             if (!target.statusEffects.burn) return; |             if (!target.statusEffects.burn) return; | ||||||
| @ -398,12 +398,12 @@ export class Battle { | |||||||
|                 potency: 1-target.speed |                 potency: 1-target.speed | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s speed dropped to 1!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s speed dropped to 1!`); | ||||||
|         }, |         }, | ||||||
|         poorFate: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         poorFate: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.health = Math.round(target.health/2); |             target.health = Math.round(target.health/2); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s life was cut in half!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s life was cut in half!`); | ||||||
|         }, |         }, | ||||||
|         terrifyingHypnotism: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         terrifyingHypnotism: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             const opponents = target.team === 1 ? battle.team1 : battle.team2; |             const opponents = target.team === 1 ? battle.team1 : battle.team2; | ||||||
| @ -416,8 +416,6 @@ export class Battle { | |||||||
|             const allyTarget = team[Math.floor(Math.random()*team.length)]; |             const allyTarget = team[Math.floor(Math.random()*team.length)]; | ||||||
| 
 | 
 | ||||||
|             this.useSkill(self, skill, team, allyTarget, target, opponentTeam, activeUnits); |             this.useSkill(self, skill, team, allyTarget, target, opponentTeam, activeUnits); | ||||||
| 
 |  | ||||||
|             battle.appendLog(`${target.character.nameShort}'s life was cut in half!`); |  | ||||||
|         }, |         }, | ||||||
|         risingSun: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         risingSun: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.potencyEffects = target.potencyEffects.filter(effect => {return effect.type != EffectType.Speed}); |             target.potencyEffects = target.potencyEffects.filter(effect => {return effect.type != EffectType.Speed}); | ||||||
| @ -427,7 +425,7 @@ export class Battle { | |||||||
|                 potency: 5-target.speed |                 potency: 5-target.speed | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s speed increased to 5!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s speed increased to 5!`); | ||||||
|         }, |         }, | ||||||
|         overturnBuffs: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         overturnBuffs: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.potencyEffects = target.potencyEffects.map(effect => { |             target.potencyEffects = target.potencyEffects.map(effect => { | ||||||
| @ -435,7 +433,7 @@ export class Battle { | |||||||
|                 return effect; |                 return effect; | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s buffs were overturned!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s buffs were overturned!`); | ||||||
|         }, |         }, | ||||||
|         overturnDebuffs: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         overturnDebuffs: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.potencyEffects = target.potencyEffects.map(effect => { |             target.potencyEffects = target.potencyEffects.map(effect => { | ||||||
| @ -443,12 +441,12 @@ export class Battle { | |||||||
|                 return effect; |                 return effect; | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s debuffs were overturned!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s debuffs were overturned!`); | ||||||
|         }, |         }, | ||||||
|         overturnHealth: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         overturnHealth: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             target.health = Math.max(target.health, 35); |             target.health = Math.max(target.health, 35); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort} was brought down to size!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort} was brought down to size!`); | ||||||
|         }, |         }, | ||||||
|         reverseHierarchy: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         reverseHierarchy: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             let damage = 10+Math.floor(target.defaultHealth/10)*3; |             let damage = 10+Math.floor(target.defaultHealth/10)*3; | ||||||
| @ -506,7 +504,7 @@ export class Battle { | |||||||
|                 return effect; |                 return effect; | ||||||
|             }); |             }); | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort}'s buffs were strengthened!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort}'s buffs were strengthened!`); | ||||||
|         }, |         }, | ||||||
|         absoluteLoser: (self: BattleUnit, target: BattleUnit, battle: Battle) => { |         absoluteLoser: (self: BattleUnit, target: BattleUnit, battle: Battle) => { | ||||||
|             const swap1 = self.health; |             const swap1 = self.health; | ||||||
| @ -515,7 +513,7 @@ export class Battle { | |||||||
|             self.health = swap2; |             self.health = swap2; | ||||||
|             target.health = swap1; |             target.health = swap1; | ||||||
| 
 | 
 | ||||||
|             battle.appendLog(`${target.character.nameShort} swapped health with ${self.character.nameShort}!`); |             battle.appendLog(`(${target.team}) ${target.character.nameShort} swapped health with ${self.character.nameShort}!`); | ||||||
|         }, |         }, | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user