mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-28 02:00:04 +00:00
Changed some things around on Dragonify, hopefully resolving #50
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user