That depends.
If the rage pot killed it, it would cast it based on whatever attack it had before you rage pot'd it.
If it had health, say, from plate armor, and survived the rage pot, then it would have the new attack. Then, if something else killed it, it would use the new attack.
To recap: it needs to survive the attack change for it to use that attack for the effect.