private void Process( int senderPlayerId, Mod mod) { // Don't allow a bug or malicious modder to activate your own Active Ability if (mPlayerId != Main.myPlayer) { RPG typedMod = mod as RPG; Player player = Main.player[mPlayerId]; MPlayer mplayer = player.GetModPlayer <MPlayer>(); typedMod.ActiveAbilityStart( mplayer, mOverrideSpecialVariable, mPlayerModSpecialVariable); } else { //zzz Log error } }