- Adding equipments. They work like auras, except you have to add an "auto={cost}:equip" line. See Behemoth sledge in ARB for an example. Please test a lot before committing, thanks :)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-10 13:44:05 +00:00
parent 86ad1ef8c7
commit ca35754273
12 changed files with 298 additions and 25 deletions

View File

@@ -83,7 +83,12 @@ ActionLayer * DuelLayers::actionLayer(){
DuelLayers::DuelLayers() : nbitems(0) {}
DuelLayers::~DuelLayers(){
for (int i = 0; i < nbitems; ++i) delete objects[i];
int _nbitems = nbitems;
nbitems = 0;
for (int i = 0; i < _nbitems; ++i){
delete objects[i];
objects[i] = NULL;
}
for (size_t i = 0; i < waiters.size(); ++i)
delete(waiters[i]);