{RPGMXP} Create a state which protects you from a certain type of attack

This should be easy but from some reason I can't seem to get it work, I want my enemy to have a shield which stops all ballistic attacks since the player normal attacks are with guns it would make the player change to energy weapons or physical attacks so I made a Element called Ballistics gave it to all my guns

[IMG]http://s30.postimg.org/stvnoky8x/ballistics.jpg[/IMG]  

then I created a state which raises the users MDEF and PDEF to 200% and Element defence Ballistics

[IMG]http://s21.postimg.org/u35mlvlxj/ballistics2.jpg[/IMG]

yet when I attack the enemy with guns he still takes damage not much but some and the physical and energy weapons are also affected by the shield I would prefer for them to not be affected 

here is a copy of my game if you think it might help thanks in advance

http://www.filedropper.com/systemshockrpgmaker110215_1

Original thread: https://forums.rpgmakerweb.com/threads/rpgmxp-create-a-state-which-protects-you-from-a-certain-type-of-attack.36833/