| 6696 | case CONDITION_NO_AURA: |
| 6697 | { |
| 6698 | if(!sSpellStore.LookupEntry(value1)) |
| 6699 | { |
| 6700 | sLog.outErrorDb("Aura condition requires to have non existing spell (Id: %d), skipped", value1); |
| 6701 | return false; |
| 6702 | } |
| 6703 | if(value2 > 2) |
| 6704 | { |
| 6705 | sLog.outErrorDb("Aura condition requires to have non existing effect index (%u) (must be 0..2), skipped", value2); |
| 6706 | return false; |
| 6707 | } |
| 6708 | break; |
| 6709 | } |
| 6710 | case CONDITION_ACTIVE_EVENT: |
| 6711 | { |
| 6712 | GameEvent::GameEventDataMap const& events = gameeventmgr.GetEventMap(); |
| 6713 | if(value1 >=events.size() || !events[value1].isValid()) |
| 6714 | { |
| 6715 | sLog.outErrorDb("Active event condition requires existed event id (%u), skipped", value1); |
| 6716 | return false; |
| 6717 | } |
| 6718 | break; |
| 6719 | } |