polserver/pol-core/pol/mobile/chrcast.cpp
2018-07-31 14:30:29 +02:00

33 lines
709 B
C++

/** @file
*
* @par History
* - 2005/03/05 Shinigami: schedule_spell - spell-delay removed
*/
#include <stddef.h>
#include "../../clib/passert.h"
#include "../polclock.h"
#include "../spells.h"
#include "charactr.h"
namespace Pol
{
namespace Mobile
{
bool Character::start_spell_script( Bscript::EScriptProgram* prog, Core::USpell* spell )
{
return start_script( prog, true, new Bscript::BLong( spell->spell_id() ) );
}
void Character::schedule_spell( Core::USpell* spell )
{
passert( spell_task == nullptr );
new Core::SpellTask( &spell_task,
// polclock() + spell->delay() * POLCLOCKS_PER_SEC / 1000,
Core::polclock(), this, spell, true );
}
}
}