Implement gameobject spell casting (#271)
* Some initial work. * More work. * Just a few more errors fixed. * More progress. * Fixed all errors in main spell code. * It compiles! * Change order of function declarations. * Fix healing effects. * Remove empty lines. * Try to fix travis build. * Fix old version of Slice and Dice. * Headers cleanup. * Move gameobjects list back to unit class.
This commit is contained in:
@@ -339,5 +339,14 @@ ObjectGridStoper::Visit(CreatureMapType &m)
|
||||
}
|
||||
}
|
||||
|
||||
template void ObjectGridUnloader::Visit(GameObjectMapType &);
|
||||
void
|
||||
ObjectGridStoper::Visit(GameObjectMapType &m)
|
||||
{
|
||||
// remove dynobjects created at cast at grid de-activation
|
||||
for (GameObjectMapType::iterator iter = m.begin(); iter != m.end(); ++iter)
|
||||
{
|
||||
iter->getSource()->RemoveAllDynObjects();
|
||||
}
|
||||
}
|
||||
|
||||
template void ObjectGridUnloader::Visit(DynamicObjectMapType &);
|
||||
|
||||
Reference in New Issue
Block a user