Fix passive pets not using spells when commanded to attack

Closes #8941
Core/SmartScripts: Check Conditions also for timed Events
* some cleanup work in SmartScripts.cpp

Core/SmartScripts: Some Corrections to last commit
Merge pull request #8978 from Naios/sai_timed_cond

Core/SmartScripts: Check Conditions also for timed Events
DB/SAI: Fix quest Wrangle Some Aether Rays!

Closes #6176
Closes #8968
Merge pull request #8953 from MrSmite/PetAI_PassiveCastFix

Fix passive pets not using spells when commanded to attack