1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-28 10:10:04 +00:00

Changed some things around on Dragonify, hopefully resolving #50

This commit is contained in:
Deukhoofd
2016-03-03 20:45:42 +01:00
parent 5c5617ce99
commit 53bc6677d4
3 changed files with 7 additions and 3 deletions

View File

@@ -121,10 +121,11 @@ extendMove 'Freeze Shock', ->
extendMove 'Dragonify', ->
@afterSuccessfulHit = (battle, user, target) ->
if (target.types.length == 1 && target.types[0] == 'Dragon') || target.ability.displayName != 'Multitype'
console.log(target.types)
if (target.types.length is 1 and target.types[0] is "Dragon") or target.hasAbility('Multitype') == true
@fail(battle, user)
else
target.types = [ 'Dragon' ]
target.setType(["Dragon"])
battle.cannedText('TRANSFORM_TYPE', target, 'Dragon')
makeOpponentFieldMove 'Livewire', (battle, user, opponentId) ->