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:
@@ -492,7 +492,7 @@ extendMove 'Camouflage', ->
|
||||
@use = (battle, user, target) ->
|
||||
# Camouflage changes type based on terrain
|
||||
# In Wi-Fi battles, the terrain always results in Ground type.
|
||||
target.types = [ "Ground" ]
|
||||
target.types = [ "Normal" ]
|
||||
battle.message "#{user.name} transformed into a Ground type!"
|
||||
|
||||
extendMove 'Captivate', ->
|
||||
|
||||
@@ -132,6 +132,9 @@ class @Pokemon
|
||||
for move in @moves
|
||||
@ppHash[move.name] = @maxPPHash[move.name] = pp || (move.pp * 8/5)
|
||||
|
||||
setType: (newType) ->
|
||||
@types = newType
|
||||
|
||||
# Gets the stat indexed by key.
|
||||
# Ex: pokemon.stat('hp')
|
||||
# TODO: Precalculate the stats in the constructor
|
||||
|
||||
Reference in New Issue
Block a user