I tried editing the "when the oponent faints due to the user's attack" battle script, and inserted the code below, with bank being 0x1 to determine if the user has Receiver ability. When my partner faints, the battle script activates and it does copy the ally's ability. But Receiver ability does not work like that, if the ally faints due to opponent's attack, the Receiver ability activates.