IADaenks
03-06-2003, 05:03 AM
This fixes bards not being able to cast while running, its VERY simple...
this is in spells.cpp:
void Mob::SpellProcess() {
if (casting_spell_id)
{
float dist = (float)sqrt((float)pow(x_pos-GetSpellX(),2)+pow(y_pos-GetSpellY(),2));
if (dist > 5 && !IsBardSong(casting_spell_id))
{
isinterrupted = true;
}
}
continue with rest of function normally
still working on the fixzzle bug, and spells getting intrupted by normal hits.... but heres a start :)
-Dan
this is in spells.cpp:
void Mob::SpellProcess() {
if (casting_spell_id)
{
float dist = (float)sqrt((float)pow(x_pos-GetSpellX(),2)+pow(y_pos-GetSpellY(),2));
if (dist > 5 && !IsBardSong(casting_spell_id))
{
isinterrupted = true;
}
}
continue with rest of function normally
still working on the fixzzle bug, and spells getting intrupted by normal hits.... but heres a start :)
-Dan