Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto& pet : p()->pet_list)
- {
- auto lock_pet = dynamic_cast<pets::warlock_pet_t*>(pet);
- if (lock_pet == nullptr)
- continue;
- if (lock_pet->is_sleeping())
- continue;
- if (lock_pet->pet_type == PET_DEMONIC_TYRANT)
- continue;
- if (lock_pet->expiration)
- {
- timespan_t new_time = lock_pet->expiration->time + p()->buffs.demonic_power->data().effectN(3).time_value();
- lock_pet->expiration->reschedule_time = new_time;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment