• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 1.0] addCondion

TheChaos

Member
Joined
Sep 10, 2014
Messages
17
Reaction score
19
// creature:addCondition(condition[, force = false])

Does anyone know how would I use the force feature?
 
Code:
  if (!force && condition->getType() == CONDITION_HASTE && hasCondition(CONDITION_PARALYZE)) {
     int64_t walkDelay = getWalkDelay();
     if (walkDelay > 0) {
       g_scheduler.addEvent(createSchedulerTask(walkDelay, std::bind(&Game::forceAddCondition, &g_game, getID(), condition)));
       return false;
     }
   }

From what I see, if it's true, the player with paralyze will stay with the paralyze condition even if he use haste.
 
Last edited:
Back
Top