# # 味方全員の対象から使用者を除外Release2(RGSS3) #  (C)2012 TYPE74RX-T # #============================================================================== # ■ Game_Battler #------------------------------------------------------------------------------ #  スプライトや行動に関するメソッドを追加したバトラーのクラスです。このクラス # は Game_Actor クラスと Game_Enemy クラスのスーパークラスとして使用されます。 #============================================================================== class Game_Battler < Game_BattlerBase #-------------------------------------------------------------------------- # ● スキル/アイテムの効果適用 #-------------------------------------------------------------------------- alias rx3_120120r2_item_apply item_apply def item_apply(user, item) return if (item.note =~ /rx使用者以外/) != nil && user == self && ! $game_party.in_battle rx3_120120r2_item_apply(user, item) # メソッド呼び戻し end end #============================================================================== # ■ Scene_Battle #------------------------------------------------------------------------------ #  バトル画面の処理を行うクラスです。 #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● アニメーションの表示 # targets : 対象者の配列 # animation_id : アニメーション ID(-1: 通常攻撃と同じ) #-------------------------------------------------------------------------- alias rx3_120119_show_animation show_animation def show_animation(targets, animation_id) item = @subject.current_action.item targets.delete(@subject) if (item.note =~ /rx使用者以外/) != nil and targets.include?(@subject) rx3_120119_show_animation(targets, animation_id) # メソッド呼び戻し end end