daigotsu;158467 said:Skills exclusively granted through weapon(maybe armor too) equipment do not disappear when, after equiping the support ability that grants them, the named weapon is unequiped. Was this supposed to be this way?
self.abilities.each_value do |ability|
# Add ability skills
skills += ability.parameters['skills'].to_a
end
for ability in self.abilities
skills += ability.parameters['skills'].to_a
end
@abilities = [' ']
#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?('Passive Skills') && SDK.enabled?('Support Abilities')
class Game_PassiveEffects
#--------------------------------------------------------------------------
# * Get Extra Passive Effects
#--------------------------------------------------------------------------
def get_extra_passive_effects(type)
# Setup Effects Array
effects = []
# Get Map id
map_id = $game_map.map_id
# Get Map Passive Effects
effects << $data_passive[Passive_Setup::Map_Effects[map_id]]
# If in battle
if $game_temp.in_battle
# Get Battleback
battleback = $game_temp.battleback_name
# Get Battleback Passive Effects
effects << $data_passive[Passive_Setup::Battleback_Effects[battleback]]
end
# Run Through Abilities
@battler.abilities.each do |ability|
# Skip if doesn't have passive tagging
next if not ability.parameters.has_key?('passive')
# Push Passive Effect
effects << $data_passive[ability.parameters['passive']]
end
# Remove nils
effects.compact!
# Delete if effect not included
effects.delete_if {|effect| !effect.effects.include?(type)}
# Return Effects
return effects
end
end
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end
Trickster;182843 said:Untested but it should work someone test it for me :D