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:
ratkosrb
2019-09-18 23:40:41 +03:00
committed by GitHub
parent 6b52729ed8
commit 428aa18976
40 changed files with 4010 additions and 3418 deletions
+10 -1
View File
@@ -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 &);