Files
LonaRPG-Online-Games/Data/Scripts/Editables/4006_Fireball_ProjectileCharacter.rb
2026-10-29 21:59:06 +04:00

24 lines
733 B
Ruby
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#==============================================================================
# This script is created by Kslander
#==============================================================================
#基本投擲物(ex:石頭、弓箭)使用的class,ai_state永遠為killer
class Game_FireballPorjectile < Game_PorjectileCharacter
def initialize(name)
super(name)
end
def update_frame
update_fireball
update_missile
end
def update_fireball
if @event.summon_data[:user] && @event.summon_data[:user] == $game_player
if Input.trigger?($game_player.hotkey_skill_normal)
@event.opacity = 0
@event.moveto(@event.x,@event.y)
set_killer_skill(0)
missile_auto_ded
end
end
end
end