mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Tweaks to comments, Destiny Knot no longer affects breeding in Gen 5 mechanics
This commit is contained in:
@@ -1313,9 +1313,9 @@ class Battle::Move::TypeDependsOnUserIVs < Battle::Move
|
||||
end
|
||||
end
|
||||
|
||||
# NOTE: This allows Hidden Power to be Fairy-type (if you have that type in your
|
||||
# game). I don't care that the official games don't work like that.
|
||||
def pbHiddenPower(pkmn)
|
||||
# NOTE: This allows Hidden Power to be Fairy-type (if you have that type in
|
||||
# your game). I don't care that the official games don't work like that.
|
||||
iv = pkmn.iv
|
||||
idxType = 0
|
||||
power = 60
|
||||
@@ -1363,9 +1363,9 @@ class Battle::Move::TypeAndPowerDependOnUserBerry < Battle::Move
|
||||
return false
|
||||
end
|
||||
|
||||
# NOTE: The AI calls this method via pbCalcType, but it involves user.item
|
||||
# which here is assumed to be not nil (because item.id is called). Since
|
||||
# the AI won't want to use it if the user has no item anyway, perhaps
|
||||
# NOTE: The AI calls this method via pbCalcType, and this method returns a
|
||||
# type assuming user has an item even though it might not. Since the AI
|
||||
# won't want to use this move if the user has no item, though, perhaps
|
||||
# this is good enough.
|
||||
def pbBaseType(user)
|
||||
item = user.item
|
||||
|
||||
Reference in New Issue
Block a user