Yanfly Battle Engine removes poison flash

Discussion in 'RGSSx Script Support' started by EctoWarrior, Jul 29, 2013.

  1. EctoWarrior

    EctoWarrior Villager Member

    Messages:
    26
    Likes Received:
    3
    First Language:
    English
    I've been having a problem with the Yanfly Battle Engine. I've seen this problem posted on Yanfly's Wordpress, but since he's on hiatus it went unanswered. After installing this script, it seems to remove the red flash effect when an actor is poisoned. The actor will still take damage, but there is no flash. I also know that it's a problem with poison only, normal floor damage still works fine. Any way to fix this?
     
    #1
  2. EctoWarrior

    EctoWarrior Villager Member

    Messages:
    26
    Likes Received:
    3
    First Language:
    English
    Anyone have any ideas?
     
    #2
  3. Xypher

    Xypher Veteran Veteran

    Messages:
    148
    Likes Received:
    24
    add this somewhere below materials and change the 2 $game_party.s_any?(2) to your poison state id

    Code:
    class Game_Party < Game_Unit   def s_any?(state_id)    members.any? {|actor| actor.state?(state_id)}  end endclass Game_Actor < Game_Battler     def turn_end_on_map    if $game_party.steps % steps_for_turn == 0      on_turn_end      perform_map_damage_effect if $game_party.s_any?(2)    end  end end
     
    #3

Share This Page