Closed econoraptor closed 6 years ago
What I don't like about this is that it breaks the API when it doesn't need to - would you mind re-adding the FlashedPlayers
-Property to the FlashEventArgs
, so old code depending on this API still works?
FlashedPlayers
should now be exactly how it is in master.
This will break current usage of
FlashedPlayers
. If that's an issue, I can reimplementFlashedPlayers
using theBlind
event. The current implementation is broken as detailed in issue #120.This creates a new
Blind
event for when players are flashed and removesFlashedPlayers
fromFlashEventArgs
. Additionally, it restrictsBlind
events to players who aren't spectators. The newBlindEventArgs
includes anAttacker
field, which allows a user to matchFlashEventArgs.ThrownBy
withBlindEventArgs.Attacker
. It also includes aFlashDuration
field.