Commit 10339cf3 authored by argon.sun's avatar argon.sun

fix

parent b5972974
......@@ -2,6 +2,7 @@
#define NETWORK_H
#include "config.h"
#include <event2/event.h>
#include <set>
#include <vector>
......
......@@ -62,10 +62,8 @@ uint32 default_card_reader(uint32 code, card_data* data) {
return 0;
}
uint32 default_message_handler(void* pduel, uint32 message_type) {
printf("%s\n", ((duel*)pduel)->strbuffer);
return 0;
}
extern "C" DECL_DLLEXPORT ptr create_duel(uint32 seed) {
duel* pduel = new duel();
duel_set.insert(pduel);
......
......@@ -23,6 +23,8 @@ function c25165047.initial_effect(c)
--Destroy replace
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetTarget(c25165047.desreptg)
c:RegisterEffect(e3)
......
......@@ -15,7 +15,7 @@ function c57281778.descon(e,tp,eg,ep,ev,re,r,rp)
local t=Duel.GetAttackTarget()
if ev==1 then t=Duel.GetAttacker() end
e:SetLabelObject(t)
return t:IsRace(RACE_SPELLCASTER+RACE_WARRIOR) and t:IsRelateToBattle()
return t and t:IsRace(RACE_SPELLCASTER+RACE_WARRIOR) and t:IsRelateToBattle()
end
function c57281778.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabelObject():IsDestructable() end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment