Instructions Jenkins Doxygen

[fix] update dna sate aftr award the sample to ensure the max count is 44/744/1
authorwashu <sal.scotto@gmail.com>
Tue, 3 Sep 2013 18:29:47 +0000 (18:29 +0000)
committerwashu <sal.scotto@gmail.com>
Tue, 3 Sep 2013 18:29:47 +0000 (18:29 +0000)
set before you try again. so you dont get a ohh i failed, try again
and now you get 'you can not sample from that creature'

Change-Id: I23a051e224689deadb30a01bf21b7d7d48caeb87

MMOCoreORB/src/server/zone/objects/creature/events/SampleDnaTask.h

index 4c1aa04..321bfc8 100644 (file)
@@ -165,6 +165,9 @@ public:
                                        player->sendSystemMessage("@bio_engineer:harvest_dna_succeed");
                                        creature->incDnaSampleCount();
                                        award(cl,rollMod);
+                                       if (creature->getDnaSampleCount() > 5) {
+                                               creature->setDnaState(CreatureManager::DNASAMPLED);
+                                       }
                                        if (aggro) {
                                                CombatManager::instance()->startCombat(creature,player,true);
                                        }