tjc12821

Untitled

Jul 24th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1.         for (auto& pet : p()->pet_list)
  2.         {
  3.           auto lock_pet = dynamic_cast<pets::warlock_pet_t*>(pet);
  4.  
  5.           if (lock_pet == nullptr)
  6.             continue;
  7.           if (lock_pet->is_sleeping())
  8.             continue;
  9.  
  10.           if (lock_pet->pet_type == PET_DEMONIC_TYRANT)
  11.             continue;
  12.  
  13.           if (lock_pet->expiration)
  14.           {
  15.             timespan_t new_time = lock_pet->expiration->time + p()->buffs.demonic_power->data().effectN(3).time_value();
  16.             lock_pet->expiration->reschedule_time = new_time;
  17.           }
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment